Wireshark-commits: [Wireshark-commits] master 40f6cb7: extcap: Fix memory leak in extcap_get_if_con
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=40f6cb70e9cc4c4d9826e8618e948b39efe1e8e9
Submitter: "Peter Wu <peter@xxxxxxxxxxxxx>"
Changed: branch: master
Repository: wireshark
Commits:
40f6cb7 by Tomasz Moń (desowin@xxxxxxxxx):
extcap: Fix memory leak in extcap_get_if_configuration_values()
The content of the list returned by g_hash_table_get_keys() is owned by
GHashTable and should not be modified or freed. However, the list itself
should be freed using g_list_free().
This fixes memory leak that happened on every selector option reload.
Change-Id: Id91055264fed9f7b8ab8dba9292d5f35389ca235
Reviewed-on: https://code.wireshark.org/review/33244
Petri-Dish: Alexis La Goutte <alexis.lagoutte@xxxxxxxxx>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@xxxxxxxxxxxxx>
Actions performed:
from 92dede5 wslua(pinfo): fix typo
add 40f6cb7 extcap: Fix memory leak in extcap_get_if_configuration_values()
Summary of changes:
extcap.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)