forked from osmocom/wireshark
wsutil: Free files in reset_default_profile
This plugs a memory leak. Change-Id: Ic989a89353d10de6f8f07df6a734d2b912facb7e Reviewed-on: https://code.wireshark.org/review/22305 Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
parent
a14ef98540
commit
99c3c6d908
|
@ -1564,6 +1564,7 @@ reset_default_profile(char **pf_dir_path_return)
|
|||
g_free(del_file);
|
||||
file = g_list_next(file);
|
||||
}
|
||||
g_list_free(files);
|
||||
|
||||
g_free(profile_dir);
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue