diff options
author | DJ Delorie <dj@delorie.com> | 2011-04-20 19:06:46 +0000 |
---|---|---|
committer | DJ Delorie <dj@delorie.com> | 2011-04-20 19:06:46 +0000 |
commit | 4d7ac92467013489091ae23a80e96975ff4c9cf4 (patch) | |
tree | 9b6a7d4b81636f00de9aea49b0aa21e57137d2a3 /libiberty/spaces.c | |
parent | c7a2d3a6bf57327890baddb2555016bc7aa65422 (diff) | |
download | binutils-redhat-4d7ac92467013489091ae23a80e96975ff4c9cf4.tar.gz |
merge from gcc
Diffstat (limited to 'libiberty/spaces.c')
-rw-r--r-- | libiberty/spaces.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libiberty/spaces.c b/libiberty/spaces.c index 67481c9bcd..69d7a2d3f8 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; |