Wireshark-commits: [Wireshark-commits] master c52776d: extcap: Fix memory leak in extcap_get_descri

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Mon, 20 May 2019 13:37:43 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=c52776da62b562a9bc8dff4464b0ce33dcb3234e
Submitter: "Peter Wu <peter@xxxxxxxxxxxxx>"
Changed: branch: master
Repository: wireshark

Commits:

c52776d by Tomasz Moń (desowin@xxxxxxxxx):

    extcap: Fix memory leak in extcap_get_descriptions()
    
    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().
    
    Change-Id: I272616924bfd9178a925878a0458a173aff403ba
    Reviewed-on: https://code.wireshark.org/review/33222
    Petri-Dish: Peter Wu <peter@xxxxxxxxxxxxx>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: Peter Wu <peter@xxxxxxxxxxxxx>
    

Actions performed:

    from  a115d2b   extcap: Fix Python 3 control data handling in example
     add  c52776d   extcap: Fix memory leak in extcap_get_descriptions()


Summary of changes:
 extcap.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)