[Commits] [svn:einsteintoolkit] Multipole/trunk/src/ (Rev. 110)

rhaas at tapir.caltech.edu rhaas at tapir.caltech.edu
Fri Apr 25 13:14:18 CDT 2014


User: rhaas
Date: 2014/04/25 01:14 PM

Modified:
 /trunk/src/
  multipole.cc

Log:
 destroy Cactus table created when parsing output variable string

File Changes:

Directory: /trunk/src/
======================

File [modified]: multipole.cc
Delta lines: +7 -0
===================================================================
--- trunk/src/multipole.cc	2014-02-07 20:25:50 UTC (rev 109)
+++ trunk/src/multipole.cc	2014-04-25 18:14:18 UTC (rev 110)
@@ -74,6 +74,13 @@
       }
       Util_TableGetString(table, buffer_length, buffer , "name");
       v->name = string(buffer);
+
+      const int ierr = Util_TableDestroy(table);
+      if (ierr)
+      {
+        CCTK_VError(__LINE__, __FILE__, CCTK_THORNSTRING,
+                    "Could not destroy table: %d", ierr);
+      }
     }
   }
   vs->n_vars++;



More information about the Commits mailing list