From 66c968068de9fba24c26e79a2ce314404353a991 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 27 Mar 2011 10:58:19 +0200 Subject: [PATCH] s3: Fix Coverity ID 2331: RESOURCE_LEAK --- source3/nmbd/nmbd_packets.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source3/nmbd/nmbd_packets.c b/source3/nmbd/nmbd_packets.c index c511a4e3542..36dacfb6f31 100644 --- a/source3/nmbd/nmbd_packets.c +++ b/source3/nmbd/nmbd_packets.c @@ -1826,6 +1826,7 @@ static bool store_processed_packet(struct processed_packet **pp_processed_packet } else if (packet->packet_type == DGRAM_PACKET) { p->packet_id = packet->packet.dgram.header.dgm_id; } else { + SAFE_FREE(p); return false; } -- 2.34.1