]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - bfd/doc/chew.c
Update year range in copyright notice of binutils files
[thirdparty/binutils-gdb.git] / bfd / doc / chew.c
index 31e3e3b93f029c5c52eb406f52957bf3fa125605..b3be7fa9cdad97590a754db0b0d828c5025474b3 100644 (file)
@@ -1,5 +1,5 @@
 /* chew
-   Copyright (C) 1990-2020 Free Software Foundation, Inc.
+   Copyright (C) 1990-2021 Free Software Foundation, Inc.
    Contributed by steve chamberlain @cygnus
 
    This file is part of BFD, the Binary File Descriptor library.
@@ -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