Wireshark-commits: [Wireshark-commits] master-3.0 3b06305: epan DTD parser: don't leak the full pat

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Sat, 02 May 2020 22:19:39 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=3b063058ec5e73d121bdc7ada967d9fc8054baff
Submitter: "Guy Harris <gharris@xxxxxxxxx>"
Changed: branch: master-3.0
Repository: wireshark

Commits:

3b06305 by Guy Harris (guy@xxxxxxxxxxxx):

    epan DTD parser: don't leak the full path string on error.
    
    While we're at it, fix a return - the return value is a pointer, with
    NULL meaning error, not a Boolean, with FALSE meaning error, so return
    NULL, not FALSE.
    
    Change-Id: Ie77fe2c6173293a2a202ad29a6c5033e2a401aa7
    Ping-Bug: 16335
    Reviewed-on: https://code.wireshark.org/review/37033
    Petri-Dish: Guy Harris <gharris@xxxxxxxxx>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: Guy Harris <gharris@xxxxxxxxx>
    (cherry picked from commit 3618aa2cc68eeb7b9d0ab52a388f74eee382d09d)
    Reviewed-on: https://code.wireshark.org/review/37036
    

Actions performed:

    from  5b62910   Fix memory leak in export_object.c
     add  3b06305   epan DTD parser: don't leak the full path string on error.


Summary of changes:
 epan/dtd_preparse.l | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)