]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libelf: Don't leak memory on failure paths in elf_updatefile.
authorMark Wielaard <mjw@redhat.com>
Thu, 18 Jun 2015 08:50:19 +0000 (10:50 +0200)
committerMark Wielaard <mjw@redhat.com>
Fri, 19 Jun 2015 11:08:00 +0000 (13:08 +0200)
commit3c57452a45b9ab3ce9fa7994c42eda677483cb46
treeed8c17832a7ff0cc5df667f673d44b05a01dc045
parent77be59bca4057b22af70b0b2d0197f9505577381
libelf: Don't leak memory on failure paths in elf_updatefile.

When something goes wrong during the update make sure to always free any
temporary allocated memory (shdr_data and/or scns).

Signed-off-by: Mark Wielaard <mjw@redhat.com>
libelf/ChangeLog
libelf/elf32_updatefile.c