]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gas/testsuite/gas/all/test-gen.c
Update year range in copyright notice of binutils files
[thirdparty/binutils-gdb.git] / gas / testsuite / gas / all / test-gen.c
index 2463581007036f072c2005583eef9300c6e6728a..3957186d43fcabca7188ff3e65058d2776d73620 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef TEST_GEN_C
 #define TEST_GEN_C 1
 
-/* Copyright (C) 2000-2017 Free Software Foundation, Inc.
+/* Copyright (C) 2000-2021 Free Software Foundation, Inc.
    Contributed by Alexandre Oliva <aoliva@cygnus.com>
 
    This file is free software; you can redistribute it and/or modify it
@@ -711,10 +711,8 @@ output_insns (func **insn, FILE *as_in, FILE *dis_out)
          for (; part-- > 0;)
            {
            skip:
-             if (data[part].as_in)
-               free (data[part].as_in);
-             if (data[part].dis_out
-                 && data[part].dis_out != data[part].as_in)
+             free (data[part].as_in);
+             if (data[part].dis_out != data[part].as_in)
                free (data[part].dis_out);
            }