Wireshark-commits: [Wireshark-commits] master c1832a8: wslua: fix memleak on error path of Tvb:byte
From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Tue, 26 Jan 2016 21:36:17 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=c1832a83586a0ae8480f7dfa6c4be542d63d782d
Submitter: Peter Wu (peter@xxxxxxxxxxxxx)
Changed: branch: master
Repository: wireshark

Commits:

c1832a8 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>
    

Actions performed:

    from  a7d07e9   Qt: Check for file changes on Reload
    adds  c1832a8   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(-)