git.samba.org
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
s3: Fix Coverity ID 2331: RESOURCE_LEAK
[samba.git]
/
source3
/
nmbd
/
nmbd_packets.c
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;
}