aboutsummaryrefslogtreecommitdiff
path: root/binutils/objdump.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2011-03-25 17:49:32 +0000
committerNick Clifton <nickc@redhat.com>2011-03-25 17:49:32 +0000
commit4b41844bd9fdecbdc78d288f7d6b3012fee49b17 (patch)
tree2256cbbbec1ef3eab8afc2ba00bcc300f195164d /binutils/objdump.c
parent1fcab1afa6e3b72649b61021898bb974c588219a (diff)
downloadfsf-binutils-gdb-4b41844bd9fdecbdc78d288f7d6b3012fee49b17.zip
fsf-binutils-gdb-4b41844bd9fdecbdc78d288f7d6b3012fee49b17.tar.gz
fsf-binutils-gdb-4b41844bd9fdecbdc78d288f7d6b3012fee49b17.tar.bz2
* objdump.c (dump_reloc_set): Free malloced memory.
Diffstat (limited to 'binutils/objdump.c')
-rw-r--r--binutils/objdump.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/binutils/objdump.c b/binutils/objdump.c
index 6b996a1..c2ce7ae 100644
--- a/binutils/objdump.c
+++ b/binutils/objdump.c
@@ -1,6 +1,6 @@
/* objdump.c -- dump information about an object file.
Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
- 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
+ 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
Free Software Foundation, Inc.
This file is part of GNU Binutils.
@@ -2907,6 +2907,11 @@ dump_reloc_set (bfd *abfd, asection *sec, arelent **relpp, long relcount)
printf ("\n");
}
+
+ if (last_filename != NULL)
+ free (last_filename);
+ if (last_functionname != NULL)
+ free (last_functionname);
}
static void