C++ modules: fix alloc-dealloc-mismatch ASAN issue
gcc/cp/ChangeLog: PR c++/99687 * module.cc (fini_modules): Call vec_free instead of delete.
This commit is contained in:
parent
c38f679eeb
commit
c4519fe3db
1 changed files with 1 additions and 1 deletions
|
@ -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. */
|
||||
|
|
Loading…
Add table
Reference in a new issue