[cig-commits] commit 2465 by heister to /var/svn/dealii/aspect

dealii.demon at gmail.com dealii.demon at gmail.com
Thu Apr 10 06:18:20 PDT 2014


Revision 2465

fix wrong deallocation bug

U   trunk/aspect/include/aspect/particle/world.h


http://www.dealii.org/websvn/revision.php?repname=Aspect+Repository&path=%2F&rev=2465&peg=2465

Diff:
Modified: trunk/aspect/include/aspect/particle/world.h
===================================================================
--- trunk/aspect/include/aspect/particle/world.h	2014-04-10 12:58:25 UTC (rev 2464)
+++ trunk/aspect/include/aspect/particle/world.h	2014-04-10 13:18:17 UTC (rev 2465)
@@ -385,9 +385,9 @@
           if (res != MPI_SUCCESS) exit(-1);
 
           // Delete temporary arrays
-          delete old_types;
-          delete indices;
-          delete block_lens;
+          delete [] old_types;
+          delete [] indices;
+          delete [] block_lens;
 
           // Initialize send/recv structures appropriately
           num_send = new int[world_size];


More information about the CIG-COMMITS mailing list