(reload): Don't free scratch_list or scratch_block if 0.
authorRichard Stallman <rms@gnu.org>
Thu, 15 Jul 1993 05:14:36 +0000 (05:14 +0000)
committerRichard Stallman <rms@gnu.org>
Thu, 15 Jul 1993 05:14:36 +0000 (05:14 +0000)
From-SVN: r4925

gcc/reload1.c

index c7ea46f6e5d4328f177da729f575cef64228b137..158b0a3ddc05921b99ff65e1d0e09a3a29a469f5 100644 (file)
@@ -2000,9 +2000,11 @@ reload (first, global, dumpfile)
   reg_equiv_constant = 0;
   reg_equiv_memory_loc = 0;
 
-  free (scratch_list);
+  if (scratch_list)
+    free (scratch_list);
   scratch_list = 0;
-  free (scratch_block);
+  if (scratch_block)
+    free (scratch_block);
   scratch_block = 0;
 
   return failure;