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 f1aff3c233
commit 0fe904d593
1 changed files with 2 additions and 0 deletions

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) {