summaryrefslogtreecommitdiff
path: root/bfd/doc/chew.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/doc/chew.c')
-rw-r--r--bfd/doc/chew.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/bfd/doc/chew.c b/bfd/doc/chew.c
index 31e3e3b93f0..76cb09f7cf4 100644
--- a/bfd/doc/chew.c
+++ b/bfd/doc/chew.c
@@ -170,8 +170,7 @@ static void
delete_string (buffer)
string_type *buffer;
{
- if (buffer->ptr)
- free (buffer->ptr);
+ free (buffer->ptr);
buffer->ptr = NULL;
}
@@ -1258,8 +1257,7 @@ free_words (void)
{
dict_type *next;
- if (ptr->word)
- free (ptr->word);
+ free (ptr->word);
if (ptr->code)
{
int i;
@@ -1443,8 +1441,7 @@ compile (string)
fprintf (stderr, "syntax error at %s\n", string - 1);
}
}
- if (word)
- free (word);
+ free (word);
}
static void