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++;
commits@lists.einsteintoolkit.org