Wireshark-commits: [Wireshark-commits] master 8c31cdc: ftype-protocol: do not return from TRY/CATCH

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Wed, 10 Oct 2018 04:03:21 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=8c31cdc13c546107235b86cfa9a539c436448f2e
Submitter: "Anders Broman <a.broman58@xxxxxxxxx>"
Changed: branch: master
Repository: wireshark

Commits:

8c31cdc by Peter Wu (peter@xxxxxxxxxxxxx):

    ftype-protocol: do not return from TRY/CATCH
    
    TRY/CATCH are macros, before returning the ENDTRY block must be executed
    or the weirdest crashes can occur.
    
    Change-Id: Ic56871322f8567263e2b8a81cce5a3c7042301b7
    Fixes: v2.1.0rc0-2939-g5493fe0167 ("Convert ftype-tvbuff.c to ftype-protocol.c")
    Reviewed-on: https://code.wireshark.org/review/30095
    Petri-Dish: Peter Wu <peter@xxxxxxxxxxxxx>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: Anders Broman <a.broman58@xxxxxxxxx>
    

Actions performed:

    from  f3986c2   steam-ihs: fix memleak on exception
     add  8c31cdc   ftype-protocol: do not return from TRY/CATCH


Summary of changes:
 epan/ftypes/ftype-protocol.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)