summaryrefslogtreecommitdiff
path: root/source3/param
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-03-22 23:25:09 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-03-22 23:25:09 +0000
commit1ce67b7672ab58afd76d0ad9cc0343e688c6770d (patch)
tree98443b5eacdf6f81e81f6c71e5a17141372126e5 /source3/param
parentdea7597767e690168e9485dfc2efabaab2dfb4cb (diff)
downloadsamba-1ce67b7672ab58afd76d0ad9cc0343e688c6770d.tar.gz
samba-1ce67b7672ab58afd76d0ad9cc0343e688c6770d.tar.bz2
samba-1ce67b7672ab58afd76d0ad9cc0343e688c6770d.zip
Valgrind found a few memory leaks!
Andrew Bartlett (This used to be commit fb680f610ceb9a0f350c99456cf7ab1a507543fe)
Diffstat (limited to 'source3/param')
-rw-r--r--source3/param/loadparm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index f8a1990513..0aa5f08be7 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -3183,6 +3183,7 @@ BOOL lp_do_parameter(int snum, const char *pszParmName, const char *pszParmValue
break;
case P_LIST:
+ str_list_free(parm_ptr);
*(char ***)parm_ptr = str_list_make(pszParmValue, NULL);
break;