Skip to content
Snippets Groups Projects
Commit fa2439a9 authored by Giovanni La Mura's avatar Giovanni La Mura
Browse files

Clean memory after writing formatted configuration

parent 4d4a311d
No related branches found
No related tags found
No related merge requests found
...@@ -1067,6 +1067,12 @@ void ScattererConfiguration::write_formatted(string file_name) { ...@@ -1067,6 +1067,12 @@ void ScattererConfiguration::write_formatted(string file_name) {
); );
break; break;
} }
// Clean memory
delete[] xi_vec;
delete[] pu_vec;
delete[] ev_vec;
delete[] wn_vec;
delete[] wl_vec;
} else { // idfc < 0, Dielectric functions are at XIP and XI is scale for dimensions } else { // idfc < 0, Dielectric functions are at XIP and XI is scale for dimensions
double pu, wn; double pu, wn;
xi_vec = scale_vec; xi_vec = scale_vec;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment