link_map: Pull release_buffer() into file scope
authorTimm Bäder <tbaeder@redhat.com>
Mon, 7 Dec 2020 11:11:05 +0000 (12:11 +0100)
committerMark Wielaard <mark@klomp.org>
Thu, 10 Dec 2020 12:55:16 +0000 (13:55 +0100)
commitbe70c464abc3b745223b80d48a2b3042966a2ad6
tree3b7d849b5b4cd446e3c10a2919418d50eeed8b8d
parent4f587a12b411e03f335e43a924125ff5c99a41d5
link_map: Pull release_buffer() into file scope

Get rid of a nested function this way. Add a memory_closure struct to
keep the functions clean.

Signed-off-by: Timm Bäder <tbaeder@redhat.com>
libdwfl/ChangeLog
libdwfl/link_map.c