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:
parent
8670f63731
commit
31ada41b5a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user