diff options
author | Michael Snyder <msnyder@vmware.com> | 2011-03-14 20:51:59 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2011-03-14 20:51:59 +0000 |
commit | 0cbf3531351540a91e7dd2b5c00696618bc93ee2 (patch) | |
tree | 7d2d5bf381fee44717071dc242fe0106bd90ada8 /binutils/objcopy.c | |
parent | c30fe01daf7e4b8d1a82b9ea2137f30e20980c70 (diff) | |
download | gdb-0cbf3531351540a91e7dd2b5c00696618bc93ee2.zip gdb-0cbf3531351540a91e7dd2b5c00696618bc93ee2.tar.gz gdb-0cbf3531351540a91e7dd2b5c00696618bc93ee2.tar.bz2 |
2011-03-14 Michael Snyder <msnyder@vmware.com>
* objcopy.c (set_pe_subsystem): Free subsystem.
Diffstat (limited to 'binutils/objcopy.c')
-rw-r--r-- | binutils/objcopy.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/binutils/objcopy.c b/binutils/objcopy.c index 51ea732f..77eaa34 100644 --- a/binutils/objcopy.c +++ b/binutils/objcopy.c @@ -3157,6 +3157,8 @@ set_pe_subsystem (const char *s) pe_section_alignment = PE_DEF_SECTION_ALIGNMENT; break; } + if (s != subsystem) + free ((char *) subsystem); } /* Convert EFI target to PEI target. */ |