diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-07-19 10:23:36 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:28:50 -0500 |
commit | 16443996b51f56b3c788d4f15e85ec0911a807b7 (patch) | |
tree | 1b6a12fbbfad7db1564910924a017924b1475cd6 /source3 | |
parent | 33d54d1642006f7a2c1dd39effbb0f0fd80942db (diff) | |
download | samba-16443996b51f56b3c788d4f15e85ec0911a807b7.tar.gz samba-16443996b51f56b3c788d4f15e85ec0911a807b7.tar.bz2 samba-16443996b51f56b3c788d4f15e85ec0911a807b7.zip |
r23967: Memleak fix from Atsushi Nakabayashi <nakabayashi@miraclelinux.com>
Thanks!
Volker
(This used to be commit 46997a70199296d4ec45780f002898f23029bb26)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/lanman.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/smbd/lanman.c b/source3/smbd/lanman.c index a7fe07b314..3568bb55b9 100644 --- a/source3/smbd/lanman.c +++ b/source3/smbd/lanman.c @@ -850,6 +850,7 @@ static BOOL api_DosPrintQGetInfo(connection_struct *conn, uint16 vuid, if (mdrcnt > 0) { *rdata = SMB_REALLOC_LIMIT(*rdata,mdrcnt); if (!*rdata) { + SAFE_FREE(queue); return False; } desc.base = *rdata; @@ -882,6 +883,8 @@ static BOOL api_DosPrintQGetInfo(connection_struct *conn, uint16 vuid, *rparam_len = 6; *rparam = SMB_REALLOC_LIMIT(*rparam,*rparam_len); if (!*rparam) { + SAFE_FREE(queue); + SAFE_FREE(tmpdata); return False; } SSVALS(*rparam,0,desc.errcode); |