gdb: Convert language la_compute_program field to a method
[deliverable/binutils-gdb.git] / ld / ldfile.c
index 53112c86947fdf222e9517f5b3db4a36a56ff5ad..60b28d3f0ce84d7a6d13b9ea4ac861985a5a3cf2 100644 (file)
@@ -240,8 +240,8 @@ ldfile_try_open_bfd (const char *attempt,
                                skip = 1;
                            }
                          free (arg1);
-                         if (arg2) free (arg2);
-                         if (arg3) free (arg3);
+                         free (arg2);
+                         free (arg3);
                          break;
                        case NAME:
                        case LNAME:
@@ -250,8 +250,7 @@ ldfile_try_open_bfd (const char *attempt,
                          free (yylval.name);
                          break;
                        case INT:
-                         if (yylval.bigint.str)
-                           free (yylval.bigint.str);
+                         free (yylval.bigint.str);
                          break;
                        }
                      token = yylex ();
This page took 0.023107 seconds and 4 git commands to generate.