From 2c5733ae51095c17d9ed34d660dfa8634c94cda9 Mon Sep 17 00:00:00 2001 From: Lester <55822214+lester-001@users.noreply.github.com> Date: Mon, 5 Dec 2022 11:01:14 +0800 Subject: [PATCH] free replybuf after sent replay message --- src/upf/gtp-path.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/upf/gtp-path.c b/src/upf/gtp-path.c index c859bd6ee..35a1d8314 100644 --- a/src/upf/gtp-path.c +++ b/src/upf/gtp-path.c @@ -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) {