aboutsummaryrefslogtreecommitdiff
path: root/gcc/stmt.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>1999-10-29 09:49:23 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>1999-10-29 09:49:23 +0000
commit5faf03ae77a43db0e5a685a01eb5b4023b09638f (patch)
tree610028a55913271a69abf4d597b12ed1df6999c0 /gcc/stmt.c
parent3baa501d812db77b1957928294a753c372104afb (diff)
downloadgcc-5faf03ae77a43db0e5a685a01eb5b4023b09638f.zip
gcc-5faf03ae77a43db0e5a685a01eb5b4023b09638f.tar.gz
gcc-5faf03ae77a43db0e5a685a01eb5b4023b09638f.tar.bz2
except.c (free_eh_nesting_info): Free the info itself.
* except.c (free_eh_nesting_info): Free the info itself. * function.c (free_after_compilation): Don't free NULL. * gcse.c (alloc_pre_mem): Free the temp_bitmap, too. (pre_edge_insert): Free inserted. * stmt.c (free_stmt_status): Don't free NULL. From-SVN: r30255
Diffstat (limited to 'gcc/stmt.c')
-rw-r--r--gcc/stmt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/stmt.c b/gcc/stmt.c
index eeab664..f47e9fa 100644
--- a/gcc/stmt.c
+++ b/gcc/stmt.c
@@ -559,8 +559,8 @@ free_stmt_status (f)
/* We're about to free the function obstack. If we hold pointers to
things allocated there, then we'll try to mark them when we do
GC. So, we clear them out here explicitly. */
-
- free (f->stmt);
+ if (f->stmt)
+ free (f->stmt);
f->stmt = NULL;
}