From be70669865d077571ae1651a3d1f22bc5ef5b656 Mon Sep 17 00:00:00 2001 From: Jalal Mostafa Date: Wed, 24 Jul 2024 19:43:40 +0200 Subject: [PATCH] udp: fix double free in udp_destroy Signed-off-by: Jalal Mostafa --- lib/cnet/udp/cnet_udp.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/cnet/udp/cnet_udp.c b/lib/cnet/udp/cnet_udp.c index bc1669eb..d9f78fa0 100644 --- a/lib/cnet/udp/cnet_udp.c +++ b/lib/cnet/udp/cnet_udp.c @@ -59,10 +59,6 @@ udp_destroy(void *_stk) stk_t *stk = _stk; if (stk->udp) { - struct pcb_entry *p; - - vec_foreach_ptr (p, stk->udp->udp_hd.vec) - free(p); vec_free(stk->udp->udp_hd.vec); stk->udp->udp_hd.vec = NULL; free(stk->udp);