git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
288fb9d
)
s3: Fix Coverity ID 2331: RESOURCE_LEAK
author
Volker Lendecke
<vl@samba.org>
Sun, 27 Mar 2011 08:58:19 +0000
(10:58 +0200)
committer
Volker Lendecke
<vl@samba.org>
Sun, 27 Mar 2011 09:25:33 +0000
(11:25 +0200)
source3/nmbd/nmbd_packets.c
patch
|
blob
|
history
diff --git
a/source3/nmbd/nmbd_packets.c
b/source3/nmbd/nmbd_packets.c
index c511a4e354270b6fdb3471d2a6197364c4d77c19..36dacfb6f31f8c1b53693d37aceea1325035fc73 100644
(file)
--- 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;
}