From: Volker Lendecke Date: Thu, 27 Mar 2008 21:54:10 +0000 (+0100) Subject: Fix a memory leak X-Git-Tag: samba-3.3.0pre1~3038 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ce1bd43cdae63ff05aefaded419388e7b9e3ba9a;p=thirdparty%2Fsamba.git Fix a memory leak --- diff --git a/source/lib/sharesec.c b/source/lib/sharesec.c index 5a8984f4f03..2338cca591b 100644 --- a/source/lib/sharesec.c +++ b/source/lib/sharesec.c @@ -137,6 +137,8 @@ SEC_DESC *get_share_security( TALLOC_CTX *ctx, const char *servicename, status = unmarshall_sec_desc(ctx, data.dptr, data.dsize, &psd); + SAFE_FREE(data.dptr); + if (!NT_STATUS_IS_OK(status)) { DEBUG(0, ("unmarshall_sec_desc failed: %s\n", nt_errstr(status)));