linux-user/elfload: Avoid leaking interp_name using GLib memory API
commit2b323087b546553408c69dd6e92c5d492a49b003
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Wed, 21 Oct 2020 17:37:41 +0000 (21 10:37 -0700)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 27 Oct 2020 10:44:02 +0000 (27 10:44 +0000)
treee6ff4c0f730b968fcbec5d9523e02dcc02bdf5f5
parent069175bfd821a9ef16b0110b92b2b6116f981fc0
linux-user/elfload: Avoid leaking interp_name using GLib memory API

Fix an unlikely memory leak in load_elf_image().

Fixes: bf858897b7 ("linux-user: Re-use load_elf_image for the main binary.")
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20201021173749.111103-5-richard.henderson@linaro.org
Message-Id: <20201003174944.1972444-1-f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
linux-user/elfload.c