summaryrefslogtreecommitdiff
path: root/source4/param
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-12-15 21:29:59 +0100
committerJeremy Allison <jra@samba.org>2013-12-17 01:57:13 +0100
commitb067f1e35bd3e3fa886aae3b0011e1585664f11e (patch)
tree36f9dcdd81ad52dff1fbc8239353d7c4f1d5f3a2 /source4/param
parentec270cf6a81d0c9349649ce0945d4da1df320871 (diff)
downloadsamba-b067f1e35bd3e3fa886aae3b0011e1585664f11e.tar.gz
share_ldb: Fix a memleak
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source4/param')
-rw-r--r--source4/param/share_ldb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/param/share_ldb.c b/source4/param/share_ldb.c
index 1473eb0ab35..212d910ae02 100644
--- a/source4/param/share_ldb.c
+++ b/source4/param/share_ldb.c
@@ -79,6 +79,7 @@ static const char *sldb_string_option(struct share_config *scfg, const char *opt
name[colon-opt_name] = '-';
el = ldb_msg_find_element(msg, name);
+ TALLOC_FREE(name);
} else {
el = ldb_msg_find_element(msg, opt_name);
}