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 | a3c8961c37dd4d4f97f458742e6c4566e0fc3ae4 (patch) | |
tree | 7268ea29fcdb9b52e9b32c55bcdb1b4d19c50408 /binutils/objcopy.c | |
parent | e7978964e8ad67663e1dee9838ce0a2f5a74d886 (diff) | |
download | binutils-redhat-a3c8961c37dd4d4f97f458742e6c4566e0fc3ae4.tar.gz |
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 51ea732fc6..77eaa348b1 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. */ |