aboutsummaryrefslogtreecommitdiff
path: root/gas/stabs.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2020-05-20 22:49:01 +0930
committerAlan Modra <amodra@gmail.com>2020-05-21 10:45:33 +0930
commit9fbb53c7c8d54ec90dc308cfb50902b90900b946 (patch)
tree8515c6ad77b83d750fc107937f06c8816c4dfc2e /gas/stabs.c
parent9db70fc3656064555873332003d842b880ca470c (diff)
downloadgdb-9fbb53c7c8d54ec90dc308cfb50902b90900b946.zip
gdb-9fbb53c7c8d54ec90dc308cfb50902b90900b946.tar.gz
gdb-9fbb53c7c8d54ec90dc308cfb50902b90900b946.tar.bz2
Replace "if (x) free (x)" with "free (x)", gas
* atof-generic.c: Replace "if (x) free (x)" with "free (x)" throughout. * config/obj-elf.c: Likewise. * config/tc-aarch64.c: Likewise. * config/tc-arm.c: Likewise. * config/tc-m68k.c: Likewise. * config/tc-nios2.c: Likewise. * config/tc-tic30.c: Likewise. * ecoff.c: Likewise. * read.c: Likewise. * stabs.c: Likewise. * symbols.c: Likewise. * testsuite/gas/all/test-gen.c: Likewise.
Diffstat (limited to 'gas/stabs.c')
-rw-r--r--gas/stabs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gas/stabs.c b/gas/stabs.c
index de37f0a..c962bb4 100644
--- a/gas/stabs.c
+++ b/gas/stabs.c
@@ -564,8 +564,7 @@ generate_asm_file (int type, const char *file)
colon (sym);
- if (last_file != NULL)
- free (last_file);
+ free (last_file);
last_file = xstrdup (file);
free (buf);