From 83947f0f6ea0b32c706104213f7c72f0ba35edca Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 27 Mar 2008 22:54:10 +0100 Subject: Fix a memory leak (This used to be commit ce1bd43cdae63ff05aefaded419388e7b9e3ba9a) --- source3/lib/sharesec.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3/lib') diff --git a/source3/lib/sharesec.c b/source3/lib/sharesec.c index 5a8984f4f0..2338cca591 100644 --- a/source3/lib/sharesec.c +++ b/source3/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))); -- cgit