Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
loadparm: fix mem leak found by ASAN
==24948==ERROR: LeakSanitizer: detected memory leaks Indirect leak of 232 byte(s) in 1 object(s) allocated from: #0 0x7fc44b971c08 in __interceptor_malloc (/lib64/libasan.so.5+0xefc08) samba-team#1 0x7fc44a2fe7b0 in __talloc_with_prefix ../../lib/talloc/talloc.c:782 samba-team#2 0x7fc44a2fe7b0 in __talloc ../../lib/talloc/talloc.c:824 samba-team#3 0x7fc44a2fe7b0 in _talloc_named_const ../../lib/talloc/talloc.c:981 samba-team#4 0x7fc44a2fe7b0 in _talloc_array ../../lib/talloc/talloc.c:2764 samba-team#5 0x7fc44a1239bc in str_list_make_v3 ../../lib/util/util_strlist_v3.c:58 samba-team#6 0x7fc44a123e3b in str_list_make_v3_const ../../lib/util/util_strlist_v3.c:127 samba-team#7 0x7fc44b14cc1a in init_globals ../../source3/param/loadparm.c:547 samba-team#8 0x7fc44b14deef in lp_load_ex ../../source3/param/loadparm.c:3876 samba-team#9 0x7fc44b14f97c in lp_load_initial_only ../../source3/param/loadparm.c:4025 samba-team#10 0x7fc44b479235 in cmdline_messaging_context ../../source3/lib/cmdline_contexts.c:34 samba-team#11 0x557cf59d642c in process_options ../../source3/utils/smbpasswd.c:200 samba-team#12 0x557cf59d642c in main ../../source3/utils/smbpasswd.c:633 samba-team#13 0x7fc4419f5412 in __libc_start_main (/lib64/libc.so.6+0x24412) Signed-off-by: Swen Schillig <[email protected]> Reviewed-by: Matthias Dieter Wallnöfer <[email protected]> Reviewed-by: Andrew Bartlett <[email protected]> Autobuild-User(master): Andrew Bartlett <[email protected]> Autobuild-Date(master): Sat Aug 10 20:42:39 UTC 2019 on sn-devel-184
- Loading branch information