diff options
author | Volker Lendecke <vl@samba.org> | 2008-03-27 22:54:10 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-03-28 13:44:30 +0100 |
commit | ce1bd43cdae63ff05aefaded419388e7b9e3ba9a (patch) | |
tree | 63ecafc1790fcfac95853ea6faa7208c5a97f1c8 /source/lib/sharesec.c | |
parent | e04fc36f223d8d905a930c077a6cf6c48ee57af7 (diff) | |
download | samba-ce1bd43cdae63ff05aefaded419388e7b9e3ba9a.tar.gz |
Fix a memory leak
Diffstat (limited to 'source/lib/sharesec.c')
-rw-r--r-- | source/lib/sharesec.c | 2 |
1 files changed, 2 insertions, 0 deletions
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))); |