]> git.ipfire.org Git - thirdparty/elfutils.git/commit
src/elfclassify.c: Fix memory leak in check_ar_members
authorAaron Merey <amerey@redhat.com>
Tue, 3 Feb 2026 21:31:00 +0000 (16:31 -0500)
committerAaron Merey <amerey@redhat.com>
Tue, 10 Feb 2026 22:55:36 +0000 (17:55 -0500)
commit9129bee55721eafa54565ebfa23f7fee3df75e93
tree75352c5bbd4e25d2c9aefc1ef930687ab9d8b926
parent45bf7360166b30465d5aebb7822f93c26f370b1b
src/elfclassify.c: Fix memory leak in check_ar_members

If current_path needs to be reallocated, full_path is assigned a newly
malloced buffer and then full_path is assigned to current_path.  This
leaks the previous value of full_path.

Free full_path before reassigning it.

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