summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2013-02-20 09:31:17 +0100
committerAlexander Bokovoy <ab@samba.org>2013-02-22 16:36:13 +0100
commitb229d1dcb324c3da9d0865bd72a07e9e1b8b0c53 (patch)
tree298812a73e2b4fc0ed3707cedbcfc21365bbff07 /source3
parent6ac1435ab3389d36497ece61a2461d9ccc7b4560 (diff)
downloadsamba-b229d1dcb324c3da9d0865bd72a07e9e1b8b0c53.tar.gz
samba-b229d1dcb324c3da9d0865bd72a07e9e1b8b0c53.tar.bz2
samba-b229d1dcb324c3da9d0865bd72a07e9e1b8b0c53.zip
s3-smbd: Don't leak subcntarr array.
Reviewed-by: Alexander Bokovoy <ab@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/lanman.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/lanman.c b/source3/smbd/lanman.c
index d54e1d51e6..b5598a4382 100644
--- a/source3/smbd/lanman.c
+++ b/source3/smbd/lanman.c
@@ -1159,8 +1159,8 @@ static bool api_DosPrintQEnum(struct smbd_server_connection *sconn,
}
}
- SAFE_FREE(subcntarr);
out:
+ SAFE_FREE(subcntarr);
*rdata_len = desc.usedlen;
*rparam_len = 8;
*rparam = smb_realloc_limit(*rparam,*rparam_len);