From 16443996b51f56b3c788d4f15e85ec0911a807b7 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 19 Jul 2007 10:23:36 +0000 Subject: r23967: Memleak fix from Atsushi Nakabayashi Thanks! Volker (This used to be commit 46997a70199296d4ec45780f002898f23029bb26) --- source3/smbd/lanman.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source3') 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); -- cgit