From c8ab446488fa0117562e03f78682c1e8f1b2eafa Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Thu, 15 Jul 1993 05:14:36 +0000 Subject: [PATCH] (reload): Don't free scratch_list or scratch_block if 0. From-SVN: r4925 --- gcc/reload1.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; -- 2.30.2