public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/marxin/heads/PR99687-cpp-modules-asan-issue)] C++ modules: fix alloc-dealloc-mismatch ASAN issue
@ 2021-03-20 19:58 Martin Liska
0 siblings, 0 replies; only message in thread
From: Martin Liska @ 2021-03-20 19:58 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:006c09dcea4b4da0c82a52a97a4862040fe5e688
commit 006c09dcea4b4da0c82a52a97a4862040fe5e688
Author: Martin Liska <mliska@suse.cz>
Date: Sat Mar 20 20:57:13 2021 +0100
C++ modules: fix alloc-dealloc-mismatch ASAN issue
gcc/cp/ChangeLog:
PR c++/99687
* module.cc (fini_modules): Call vec_free instead of delete.
Diff:
---
gcc/cp/module.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/cp/module.cc b/gcc/cp/module.cc
index 6dbdc926cb4..551cb66a6d4 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. */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-03-20 19:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-20 19:58 [gcc(refs/users/marxin/heads/PR99687-cpp-modules-asan-issue)] C++ modules: fix alloc-dealloc-mismatch ASAN issue Martin Liska
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).