diff options
author | Richard Stallman <rms@gnu.org> | 1993-07-15 05:14:36 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1993-07-15 05:14:36 +0000 |
commit | c8ab446488fa0117562e03f78682c1e8f1b2eafa (patch) | |
tree | 7c9b2bf47d93c88cfc5cafedd85db3da8766b093 /gcc | |
parent | ea8fbf8a3343437071b7bfdccf3b8acacd57b8e8 (diff) | |
download | gcc-c8ab446488fa0117562e03f78682c1e8f1b2eafa.zip gcc-c8ab446488fa0117562e03f78682c1e8f1b2eafa.tar.gz gcc-c8ab446488fa0117562e03f78682c1e8f1b2eafa.tar.bz2 |
(reload): Don't free scratch_list or scratch_block if 0.
From-SVN: r4925
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/reload1.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/reload1.c b/gcc/reload1.c index c7ea46f..158b0a3 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; |