diff options
author | Kazu Hirata <kazu@gcc.gnu.org> | 2004-12-10 17:51:43 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2004-12-10 17:51:43 +0000 |
commit | 01c49ce8bd82d2cb56ff07be043c02c7f30a6d6d (patch) | |
tree | b839a733fc3c7abb9791ec393086246c1c5585f3 /gcc/tree-data-ref.c | |
parent | f914cec23622b17cc1972c1deea6bcfbf843b0fe (diff) | |
download | gcc-01c49ce8bd82d2cb56ff07be043c02c7f30a6d6d.zip gcc-01c49ce8bd82d2cb56ff07be043c02c7f30a6d6d.tar.gz gcc-01c49ce8bd82d2cb56ff07be043c02c7f30a6d6d.tar.bz2 |
tree-data-ref.c (free_data_refs): Free each data_reference object.
* tree-data-ref.c (free_data_refs): Free each data_reference
object.
From-SVN: r92002
Diffstat (limited to 'gcc/tree-data-ref.c')
-rw-r--r-- | gcc/tree-data-ref.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/tree-data-ref.c b/gcc/tree-data-ref.c index 718059f..5239821 100644 --- a/gcc/tree-data-ref.c +++ b/gcc/tree-data-ref.c @@ -2479,8 +2479,12 @@ free_data_refs (varray_type datarefs) { struct data_reference *dr = (struct data_reference *) VARRAY_GENERIC_PTR (datarefs, i); - if (dr && DR_ACCESS_FNS (dr)) - varray_clear (DR_ACCESS_FNS (dr)); + if (dr) + { + if (DR_ACCESS_FNS (dr)) + varray_clear (DR_ACCESS_FNS (dr)); + free (dr); + } } varray_clear (datarefs); } |