summaryrefslogtreecommitdiff
path: root/source3/lib/sharesec.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/sharesec.c')
-rw-r--r--source3/lib/sharesec.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/lib/sharesec.c b/source3/lib/sharesec.c
index e3216aa4594..7a6a4255590 100644
--- a/source3/lib/sharesec.c
+++ b/source3/lib/sharesec.c
@@ -179,8 +179,7 @@ BOOL set_share_security(const char *share_name, SEC_DESC *psd)
out:
prs_mem_free(&ps);
- if (mem_ctx)
- talloc_destroy(mem_ctx);
+ TALLOC_FREE(mem_ctx);
return ret;
}