aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2021-03-20 20:57:13 +0100
committerMartin Liska <mliska@suse.cz>2021-03-22 13:01:20 +0100
commitc4519fe3db366d781f342b7f04c4a09e4cc9fbd9 (patch)
tree38f122d23319238f116a6e74f03d525a5b00fc4a /gcc
parentc38f679eebffd601d977330f24def69f4b620c93 (diff)
downloadgcc-c4519fe3db366d781f342b7f04c4a09e4cc9fbd9.zip
gcc-c4519fe3db366d781f342b7f04c4a09e4cc9fbd9.tar.gz
gcc-c4519fe3db366d781f342b7f04c4a09e4cc9fbd9.tar.bz2
C++ modules: fix alloc-dealloc-mismatch ASAN issue
gcc/cp/ChangeLog: PR c++/99687 * module.cc (fini_modules): Call vec_free instead of delete.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/module.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/module.cc b/gcc/cp/module.cc
index 6dbdc92..551cb66 100644
--- a/gcc/cp/module.cc
+++ b/gcc/cp/module.cc
@@ -20009,7 +20009,7 @@ fini_modules ()
modules_hash = NULL;
/* Or entity array. We still need the entity map to find import numbers. */
- delete entity_ary;
+ vec_free (entity_ary);
entity_ary = NULL;
/* Or remember any pending entities. */