Wireshark-commits: [Wireshark-commits] master-2.0 76ee392: wslua: fix memleak on error path of Tvb:

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Wed, 27 Jan 2016 13:59:39 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=76ee39226044014531eb8ab479842039405362c4
Submitter: Peter Wu (peter@xxxxxxxxxxxxx)
Changed: branch: master-2.0
Repository: wireshark

Commits:

76ee392 by Peter Wu (peter@xxxxxxxxxxxxx):

    wslua: fix memleak on error path of Tvb:bytes()
    
    Delay allocation of a GByteArray to avoid a memleak on errors.
    
    Change-Id: I2b2ae6d33407500e81a4f45b86ef82720d3443a4
    Reviewed-on: https://code.wireshark.org/review/13553
    Petri-Dish: Peter Wu <peter@xxxxxxxxxxxxx>
    Tested-by: Petri Dish Buildbot <buildbot-no-reply@xxxxxxxxxxxxx>
    Reviewed-by: Peter Wu <peter@xxxxxxxxxxxxx>
    (cherry picked from commit c1832a83586a0ae8480f7dfa6c4be542d63d782d)
    Reviewed-on: https://code.wireshark.org/review/13563
    

Actions performed:

    from  10ad6c6   Better handle TCP conversations when ports are reused.
    adds  76ee392   wslua: fix memleak on error path of Tvb:bytes()


Summary of changes:
 epan/wslua/wslua_tvb.c |   11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)