[numex] teardown in numex table builder

This commit is contained in:
Al
2015-06-04 17:20:26 -04:00
parent 114b728f96
commit 95a4bb8e7c

View File

@@ -22,11 +22,13 @@ int main(int argc, char **argv) {
if (f == NULL) {
log_error("File could not be opened, ensure directory exists: %s\n", filename);
numex_module_teardown();
exit(1);
}
if (!numex_module_setup(NULL)) {
log_error("Numex table initialization unsuccessful\n");
numex_module_teardown();
exit(1);
}
@@ -133,5 +135,7 @@ int main(int argc, char **argv) {
exit(1);
}
numex_module_teardown();
log_info("Done\n");
}