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.
This commit is contained in:
Alan Modra
2020-05-20 22:49:01 +09:30
parent 9db70fc365
commit 9fbb53c7c8
13 changed files with 41 additions and 52 deletions

View File

@@ -611,10 +611,8 @@ atof_generic (/* return pointer to just AFTER number we read. */
/* Assert sign of the number we made is '+'. */
address_of_generic_floating_point_number->sign = digits_sign_char;
if (temporary_binary_low)
free (temporary_binary_low);
if (power_binary_low)
free (power_binary_low);
free (temporary_binary_low);
free (power_binary_low);
free (digits_binary_low);
}
return return_value;