summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-03-27 10:58:19 +0200
committerVolker Lendecke <vl@samba.org>2011-03-27 11:25:33 +0200
commit66c968068de9fba24c26e79a2ce314404353a991 (patch)
tree761d71786d518e47a0bb2f0889f121fb8a10bf53 /source3
parent288fb9d612da7d2b5abe3c7544d25775b0c4d42a (diff)
downloadsamba-66c968068de9fba24c26e79a2ce314404353a991.tar.gz
samba-66c968068de9fba24c26e79a2ce314404353a991.tar.bz2
samba-66c968068de9fba24c26e79a2ce314404353a991.zip
s3: Fix Coverity ID 2331: RESOURCE_LEAK
Diffstat (limited to 'source3')
-rw-r--r--source3/nmbd/nmbd_packets.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/nmbd/nmbd_packets.c b/source3/nmbd/nmbd_packets.c
index c511a4e354..36dacfb6f3 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;
}