summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-03-27 22:54:10 +0100
committerVolker Lendecke <vl@samba.org>2008-03-28 13:44:30 +0100
commit83947f0f6ea0b32c706104213f7c72f0ba35edca (patch)
treee9b93859a1616ebfa1f19c389d5de575e6a8627d /source3/lib
parent26fead2c6ee5e26f9a0360222c8231f0409f68a8 (diff)
downloadsamba-83947f0f6ea0b32c706104213f7c72f0ba35edca.tar.gz
samba-83947f0f6ea0b32c706104213f7c72f0ba35edca.tar.bz2
samba-83947f0f6ea0b32c706104213f7c72f0ba35edca.zip
Fix a memory leak
(This used to be commit ce1bd43cdae63ff05aefaded419388e7b9e3ba9a)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/sharesec.c2
1 files changed, 2 insertions, 0 deletions
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)));