aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2011-04-20 19:06:46 +0000
committerDJ Delorie <dj@redhat.com>2011-04-20 19:06:46 +0000
commit4ff224cb8d9347245ffea0f5853d862f0574452e (patch)
treef0ad924656bb6f1332030f73e18939949db327f0 /libiberty/spaces.c
parent PR gold/12689 (diff)
downloadbinutils-gdb-4ff224cb8d9347245ffea0f5853d862f0574452e.tar.gz
binutils-gdb-4ff224cb8d9347245ffea0f5853d862f0574452e.tar.bz2
binutils-gdb-4ff224cb8d9347245ffea0f5853d862f0574452e.zip
merge from gcc
Diffstat (limited to 'libiberty/spaces.c')
-rw-r--r--libiberty/spaces.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libiberty/spaces.c b/libiberty/spaces.c
index 67481c9bcd8..69d7a2d3f83 100644
--- a/libiberty/spaces.c
+++ b/libiberty/spaces.c
@@ -53,10 +53,7 @@ spaces (int count)
if (count > maxsize)
{
- if (buf)
- {
- free (buf);
- }
+ free (buf);
buf = (char *) malloc (count + 1);
if (buf == (char *) 0)
return 0;