From: Richard Stallman Date: Thu, 15 Jul 1993 05:14:36 +0000 (+0000) Subject: (reload): Don't free scratch_list or scratch_block if 0. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c8ab446488fa0117562e03f78682c1e8f1b2eafa;p=gcc.git (reload): Don't free scratch_list or scratch_block if 0. From-SVN: r4925 --- diff --git a/gcc/reload1.c b/gcc/reload1.c index c7ea46f6e5d..158b0a3ddc0 100644 --- a/gcc/reload1.c +++ b/gcc/reload1.c @@ -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;