diff options
author | rhaas <rhaas@4f5cb9a8-4dd8-4c2d-9bbd-173fa4467843> | 2014-04-25 18:14:18 +0000 |
---|---|---|
committer | rhaas <rhaas@4f5cb9a8-4dd8-4c2d-9bbd-173fa4467843> | 2014-04-25 18:14:18 +0000 |
commit | ed2042facb8856953f2ad6b936ca5a92e1666233 (patch) | |
tree | 94474ef40e1f20a6a4981f23c11b9c2ec101b234 | |
parent | cd013fbbe03e86338a1eebaac31b47b8b41ed867 (diff) |
destroy Cactus table created when parsing output variable string
git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/Multipole/trunk@110 4f5cb9a8-4dd8-4c2d-9bbd-173fa4467843
-rw-r--r-- | src/multipole.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/multipole.cc b/src/multipole.cc index 6eb6f0b..6386aac 100644 --- a/src/multipole.cc +++ b/src/multipole.cc @@ -74,6 +74,13 @@ static void fill_variable(int idx, const char *optstring, void *callback_arg) } 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++; |