]> gcc.gnu.org Git - gcc.git/commitdiff
C++ modules: fix alloc-dealloc-mismatch ASAN issue
authorMartin Liska <mliska@suse.cz>
Sat, 20 Mar 2021 19:57:13 +0000 (20:57 +0100)
committerMartin 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

index 6dbdc926cb4e434844f20eebf266f9c3cb691782..551cb66a6d48a5c12d1e9b3d51784e7442fa8e3d 100644 (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.  */
This page took 0.078994 seconds and 5 git commands to generate.