Wireshark-commits: [Wireshark-commits] master f57cf9e: DCERPC: fix memleak by removing dummy elemen
From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Fri, 12 Oct 2018 05:08:04 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=f57cf9e56c90c0c0c724f415eff35821afaaf849
Submitter: "Anders Broman <a.broman58@xxxxxxxxx>"
Changed: branch: master
Repository: wireshark

Commits:

f57cf9e by Peter Wu (peter@xxxxxxxxxxxxx):

    DCERPC: fix memleak by removing dummy element from ndr_pointer_list
    
    Instead of creating the pointers list early, defer it to the point when
    a new list item is added. This avoids the need for a dummy element.
    
    This happens to fix the memory leak in bug 14735 as well (verified with
    both ASAN and valgrind).
    
    Change-Id: I3b169dfc447bd7465d06c26e0bd9dfd4225b1307
    Bug: 14735
    Reviewed-on: https://code.wireshark.org/review/30115
    Petri-Dish: Peter Wu <peter@xxxxxxxxxxxxx>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: Anders Broman <a.broman58@xxxxxxxxx>
    

Actions performed:

    from  0e0e56d   DCERPC: simplify pointer list tracking
     add  f57cf9e   DCERPC: fix memleak by removing dummy element from ndr_pointer_list


Summary of changes:
 epan/dissectors/packet-dcerpc.c | 57 +++++++++++++++++++----------------------
 1 file changed, 27 insertions(+), 30 deletions(-)