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 e3216aa459..7a6a425559 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;
}