aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-family/c-pch.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2013-03-05 16:51:48 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2013-03-05 16:51:48 +0100
commit0b50e6540fe69191c78689d0ff5d0a1e18130391 (patch)
tree621a132b81c013b0cba91140e85a6ab093c5ecd4 /gcc/c-family/c-pch.c
parent4ccf8f43ce30db2991656165ddd8839598751075 (diff)
downloadgcc-0b50e6540fe69191c78689d0ff5d0a1e18130391.zip
gcc-0b50e6540fe69191c78689d0ff5d0a1e18130391.tar.gz
gcc-0b50e6540fe69191c78689d0ff5d0a1e18130391.tar.bz2
re PR middle-end/56461 (GCC is leaking lots of memory)
PR middle-end/56461 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING, if VALGRIND_GET_VBITS is defined, temporarily make object memory all defined, and restore previous valgrind addressability and definability afterwards. Free this_object at the end. * c-pch.c (pch_init): Free target_validity at the end. From-SVN: r196469
Diffstat (limited to 'gcc/c-family/c-pch.c')
-rw-r--r--gcc/c-family/c-pch.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/c-family/c-pch.c b/gcc/c-family/c-pch.c
index c40ee8d..7b0eca7 100644
--- a/gcc/c-family/c-pch.c
+++ b/gcc/c-family/c-pch.c
@@ -141,6 +141,8 @@ pch_init (void)
if (pch_ready_to_save_cpp_state)
pch_cpp_save_state ();
+
+ XDELETE (target_validity);
}
/* Whether preprocessor state has been saved in a PCH file. */