free replybuf after sent replay message

This commit is contained in:
Lester
2022-12-05 11:01:14 +08:00
committed by Sukchan Lee
parent 9fe51ba0ee
commit 2c5733ae51

View File

@@ -119,6 +119,8 @@ static void _gtpv1_tun_recv_common_cb(
if (replybuf) {
if (ogs_tun_write(fd, replybuf) != OGS_OK)
ogs_warn("ogs_tun_write() for reply failed");
ogs_pkbuf_free(replybuf);
goto cleanup;
}
if (eth_type != ETHERTYPE_IP && eth_type != ETHERTYPE_IPV6) {