diff options
author | Roland McGrath <roland@redhat.com> | 2008-04-06 01:57:32 +0000 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 2008-04-06 01:57:32 +0000 |
commit | bfc01703fe30815b450526ebcfbb37ec9f5fe9c7 (patch) | |
tree | da9fc99627a845a672cb689c4f3836b2df43bd3d /libdwfl/dwfl_module_report_build_id.c | |
parent | 60982e6e9da662cf5c9d12c6d095738a9b2dcf68 (diff) | |
download | elfutils-bfc01703fe30815b450526ebcfbb37ec9f5fe9c7.tar.gz |
libdwfl/
* linux-proc-maps.c (proc_maps_report): Don't leak LAST_FILE.
Diffstat (limited to 'libdwfl/dwfl_module_report_build_id.c')
-rw-r--r-- | libdwfl/dwfl_module_report_build_id.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libdwfl/dwfl_module_report_build_id.c b/libdwfl/dwfl_module_report_build_id.c index 4886931b..9a1b14f7 100644 --- a/libdwfl/dwfl_module_report_build_id.c +++ b/libdwfl/dwfl_module_report_build_id.c @@ -1,5 +1,5 @@ /* Report build ID information for a module. - Copyright (C) 2007 Red Hat, Inc. + Copyright (C) 2007, 2008 Red Hat, Inc. This file is part of Red Hat elfutils. Red Hat elfutils is free software; you can redistribute it and/or modify @@ -90,8 +90,7 @@ dwfl_module_report_build_id (Dwfl_Module *mod, memcpy (copy, bits, len); } - if (mod->build_id_len > 0) - free (mod->build_id_bits); + free (mod->build_id_bits); mod->build_id_bits = copy; mod->build_id_len = len; |