[numex] teardown in numex table builder
This commit is contained in:
@@ -22,11 +22,13 @@ int main(int argc, char **argv) {
|
|||||||
|
|
||||||
if (f == NULL) {
|
if (f == NULL) {
|
||||||
log_error("File could not be opened, ensure directory exists: %s\n", filename);
|
log_error("File could not be opened, ensure directory exists: %s\n", filename);
|
||||||
|
numex_module_teardown();
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!numex_module_setup(NULL)) {
|
if (!numex_module_setup(NULL)) {
|
||||||
log_error("Numex table initialization unsuccessful\n");
|
log_error("Numex table initialization unsuccessful\n");
|
||||||
|
numex_module_teardown();
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -133,5 +135,7 @@ int main(int argc, char **argv) {
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
numex_module_teardown();
|
||||||
|
|
||||||
log_info("Done\n");
|
log_info("Done\n");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user