aboutsummaryrefslogtreecommitdiff
path: root/libiberty/spaces.c
diff options
context:
space:
mode:
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 67481c9..69d7a2d 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;