Wireshark-commits: [Wireshark-commits] master 302fa68: Don't crash in manually_resolve_cleanup() if

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Sat, 03 Mar 2018 08:08:12 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=302fa6881751e5a8f9c8c197ab0008ee336e821a
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master
Repository: wireshark

Commits:

302fa68 by Guy Harris (guy@xxxxxxxxxxxx):

    Don't crash in manually_resolve_cleanup() if there's nothing to clean up.
    
    We might not yet have allocated the manually-resolved address lists;
    only free the if we have.
    
    Change-Id: Iff9864e397a04cdcb613268603c073ecd1fa77fb
    Reviewed-on: https://code.wireshark.org/review/26236
    Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
    

Actions performed:

    from  07cb624   Move what capture_info_close() does into its only caller.
    adds  302fa68   Don't crash in manually_resolve_cleanup() if there's nothing to clean up.


Summary of changes:
 epan/addr_resolv.c | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)