projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c38f679
)
C++ modules: fix alloc-dealloc-mismatch ASAN issue
author
Martin Liska
<mliska@suse.cz>
Sat, 20 Mar 2021 19:57:13 +0000
(20:57 +0100)
committer
Martin Liska
<mliska@suse.cz>
Mon, 22 Mar 2021 12:01:20 +0000
(13:01 +0100)
gcc/cp/ChangeLog:
PR c++/99687
* module.cc (fini_modules): Call vec_free instead of delete.
gcc/cp/module.cc
patch
|
blob
|
history
diff --git
a/gcc/cp/module.cc
b/gcc/cp/module.cc
index
6dbdc92
..
551cb66
100644
(file)
--- 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. */