1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

lib/param: fix copy service to correctly free the memory used by P_LIST

Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Garming Sam 2014-02-19 12:58:36 +13:00 committed by Jeremy Allison
parent 8670f63731
commit 31ada41b5a

View File

@ -947,6 +947,7 @@ static void copy_service(struct loadparm_service *pserviceDest,
*(const char * const *)src_ptr);
break;
case P_LIST:
TALLOC_FREE(*((char ***)dest_ptr));
*(const char * const **)dest_ptr = (const char * const *)str_list_copy(pserviceDest,
*(const char * * const *)src_ptr);
break;