]> git.ipfire.org Git - thirdparty/elfutils.git/commit
srcfiles.cxx: Prevent fd and entry leak
authorAaron Merey <amerey@redhat.com>
Mon, 18 Nov 2024 23:35:38 +0000 (18:35 -0500)
committerAaron Merey <amerey@redhat.com>
Mon, 25 Nov 2024 22:25:51 +0000 (17:25 -0500)
commit8a0a7cf93eeec6f5873529145088b61b259112cc
tree791de36f1a06ef80c9faf914ea8e98ef38b0df47
parent5cc89c78499cd37465d7b0b3f35ef0e5d07a98cc
srcfiles.cxx: Prevent fd and entry leak

Make sure to free fd and the archive entry if an error is encountered
while adding source files to the archive.

Signed-off-by: Aaron Merey <amerey@redhat.com>
src/srcfiles.cxx