We forgot to free last_file on error.
Signed-off-by: Mark Wielaard <mjw@redhat.com>
2016-02-13 Mark Wielaard <mjw@redhat.com>
+ * linux-proc-maps.c (proc_maps_report): Free last_file when ENOEXEC.
+
+2016-02-13 Mark Wielaard <mjw@redhat.com>
+
* frame_unwind.c (new_unwound): Check and return unwound.
(handle_cfi): Check new_unwound was able to allocate new memory
before use. Return DWFL_E_NOMEM otherwise.
/* Standard libdwfl callbacks for debugging a live Linux process.
- Copyright (C) 2005-2010, 2013, 2014 Red Hat, Inc.
+ Copyright (C) 2005-2010, 2013, 2014, 2016 Red Hat, Inc.
This file is part of elfutils.
This file is free software; you can redistribute it and/or modify
|| nread <= 0)
{
free (line);
+ free (last_file);
return ENOEXEC;
}