eu-unstrip might leak a string for each module found when using the -d
option. Make sure to free the output_file name when we are done with the
module.
Signed-off-by: Mark Wielaard <mark@klomp.org>
+2021-04-03 Mark Wielaard <mark@klomp.org>
+
+ * unstrip.c (handle_output_dir_module): Free output_file when done.
+
2021-04-03 Mark Wielaard <mark@klomp.org>
* ar.c (do_oper_insert): Always close newfd.
error (EXIT_FAILURE, 0, _("memory exhausted"));
handle_dwfl_module (output_file, true, force, mod, all, ignore, relocate);
+
+ free (output_file);
}