]> git.ipfire.org Git - thirdparty/tar.git/commit
Fix memory leak in read_header
authorSergey Poznyakoff <gray@gnu.org>
Sun, 17 Jan 2021 18:41:11 +0000 (20:41 +0200)
committerSergey Poznyakoff <gray@gnu.org>
Sun, 17 Jan 2021 18:41:11 +0000 (20:41 +0200)
commitd9d4435692150fa8ff68e1b1a473d187cc3fd777
tree9386ec9c222b6aa8295d4566774bf02787d3e613
parent2251317e3fe971fd34608cf312c8120141d8fce4
Fix memory leak in read_header

Bug reported in https://savannah.gnu.org/bugs/?59897

* src/list.c (read_header): Don't return directly from the loop.
Instead set the status and break.  Return the status.  Free
next_long_name and next_long_link before returning.
src/list.c