Skip to content
Snippets Groups Projects
Commit 4a2b1186 authored by Andreas Gattringer's avatar Andreas Gattringer
Browse files

code and memory clean-ups

parent abf5fc80
No related branches found
No related tags found
No related merge requests found
...@@ -301,6 +301,8 @@ void cleanup_configuration(struct cats_configuration **conf_orig) ...@@ -301,6 +301,8 @@ void cleanup_configuration(struct cats_configuration **conf_orig)
free(conf->global_stats.populated_by_classes); free(conf->global_stats.populated_by_classes);
free_string_array(&conf->output.needed_output_directories); free_string_array(&conf->output.needed_output_directories);
free_string_array(&conf->output.needed_module_output_directories); free_string_array(&conf->output.needed_module_output_directories);
free_string_array(&conf->overlays.registered_custom_overlay_names);
free(conf->param); free(conf->param);
conf->param = NULL; conf->param = NULL;
free(conf->run_name); free(conf->run_name);
......
...@@ -84,7 +84,7 @@ load_configuration_from_file(const char *filename, const struct program_options ...@@ -84,7 +84,7 @@ load_configuration_from_file(const char *filename, const struct program_options
conf->command_line_options = *command_line_options; conf->command_line_options = *command_line_options;
if (command_line_options->need_conf) { if (command_line_options->need_conf) {
conf->command_line_options.configuration_file = strdup(command_line_options->configuration_file); //conf->command_line_options.configuration_file = strdup(command_line_options->configuration_file);
} else { } else {
conf->command_line_options.configuration_file = strdup("auto-generated"); conf->command_line_options.configuration_file = strdup("auto-generated");
} }
......
...@@ -102,6 +102,7 @@ void load_overlay_configuration(struct cats_configuration *conf, struct cats_ini ...@@ -102,6 +102,7 @@ void load_overlay_configuration(struct cats_configuration *conf, struct cats_ini
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
free(type_name); free(type_name);
free(overlay_name);
} }
free_string_array(&overlay_names); free_string_array(&overlay_names);
......
...@@ -78,6 +78,7 @@ _Noreturn void exit_cats(int status) ...@@ -78,6 +78,7 @@ _Noreturn void exit_cats(int status)
exit(status); exit(status);
} }
......
...@@ -65,7 +65,7 @@ cats_dt_rates calculate_lambda(struct cats_configuration *conf, struct lambda_pa ...@@ -65,7 +65,7 @@ cats_dt_rates calculate_lambda(struct cats_configuration *conf, struct lambda_pa
// //
double *matrix_copy = NULL; double *matrix_copy = NULL;
matrix_copy = copy_matrix(matrix, N, N);
if (silent == false || conf->command_line_options.debug_flags & DEBUG_LAMBDA) { if (silent == false || conf->command_line_options.debug_flags & DEBUG_LAMBDA) {
matrix_copy = copy_matrix(matrix, N, N); matrix_copy = copy_matrix(matrix, N, N);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment