Wireshark-commits: [Wireshark-commits] master 2b68a6f: tshark: fix memleak from version lookup

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Tue, 23 Jun 2015 20:18:43 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=2b68a6f450ae9094241707caaf87f2d16e258cf5
Submitter: Anders Broman (a.broman58@xxxxxxxxx)
Changed: branch: master
Repository: wireshark

Commits:

2b68a6f by Peter Wu (peter@xxxxxxxxxxxxx):

    tshark: fix memleak from version lookup
    
    Immediately release memory after using it, fixes a direct memleak
    warning from ASAN.
    
    Change-Id: Icd3ff19c607da790a4a093966e1966cb0df6bb9d
    Reviewed-on: https://code.wireshark.org/review/9069
    Reviewed-by: Anders Broman <a.broman58@xxxxxxxxx>
    

Actions performed:

    from  d85a221   proto_tree_add_item_ret_(u)int: do the NULL check at the start
    adds  2b68a6f   tshark: fix memleak from version lookup


Summary of changes:
 tshark.c |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)