Wireshark-commits: [Wireshark-commits] master 22fd85d: mount: fix a memory leak

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Wed, 15 Jun 2016 01:56:20 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=22fd85d178e52b23a192737f16957d24886d0a5d
Submitter: Michael Mann (mmann78@xxxxxxxxxxxx)
Changed: branch: master
Repository: wireshark

Commits:

22fd85d by Martin Kaiser (wireshark@xxxxxxxxx):

    mount: fix a memory leak
    
    don't copy the wmem-buffer from address_to_str() into a g_malloc()ed one
    that is never freed
    
    instead, realloc the wmem-buffer and add the nfs path to it
    
    (nfs_name_snoop_add_name() will make a copy internally)
    
    Change-Id: I4274a4a413c09f3f1d78beba65d94748ce185413
    Reviewed-on: https://code.wireshark.org/review/15902
    Petri-Dish: Michael Mann <mmann78@xxxxxxxxxxxx>
    Tested-by: Petri Dish Buildbot <buildbot-no-reply@xxxxxxxxxxxxx>
    Reviewed-by: Michael Mann <mmann78@xxxxxxxxxxxx>
    

Actions performed:

    from  eb4ed5a   Clean up some messages.
    adds  22fd85d   mount: fix a memory leak


Summary of changes:
 epan/dissectors/packet-mount.c |   39 +++++++++++++++++++++------------------
 1 file changed, 21 insertions(+), 18 deletions(-)