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:
95ef857
)
r13884: Fix coverity CID #95. Resource leak on error path.
author
Jeremy Allison
<jra@samba.org>
Mon, 6 Mar 2006 19:30:34 +0000
(19:30 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 16:10:58 +0000
(11:10 -0500)
Jeremy.
source/nmbd/nmbd_packets.c
patch
|
blob
|
history
diff --git
a/source/nmbd/nmbd_packets.c
b/source/nmbd/nmbd_packets.c
index c25473c4fba17ade781b095ec42c5a92f0fb8db1..0f84b4f77154f4caabb9c41d13f639d328f81d27 100644
(file)
--- a/
source/nmbd/nmbd_packets.c
+++ b/
source/nmbd/nmbd_packets.c
@@
-536,6
+536,8
@@
void queue_wins_refresh(struct nmb_name *nmbname,
userdata = (struct userdata_struct *)SMB_MALLOC(sizeof(*userdata) + strlen(tag) + 1);
if (!userdata) {
+ p->locked = False;
+ free_packet(p);
DEBUG(0,("Failed to allocate userdata structure!\n"));
return;
}