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:
Martin Liska 2021-03-20 20:57:13 +01:00
parent c38f679eeb
commit c4519fe3db

View file

@ -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. */