aboutsummaryrefslogtreecommitdiff
path: root/src/process_hkl.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-07-13 14:28:46 +0200
committerThomas White <taw@physics.org>2012-02-22 15:26:53 +0100
commitdcdc5ea10c6525434bb2058fbc09e0159c8fcba5 (patch)
treef64fa7aeebaac15cc9ca0432c0b4c3061cec2d87 /src/process_hkl.c
parentafd85c7d4bc86ffcb27ab13abcd42df0087eefd0 (diff)
Fix memory leaks
Diffstat (limited to 'src/process_hkl.c')
-rw-r--r--src/process_hkl.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/process_hkl.c b/src/process_hkl.c
index 10dd9f79..a992c2be 100644
--- a/src/process_hkl.c
+++ b/src/process_hkl.c
@@ -344,10 +344,12 @@ int main(int argc, char *argv[])
model = new_list_intensity();
model_counts = new_list_count();
- cell = load_cell_from_pdb(pdb);
new_pattern = new_list_intensity();
items = new_items();
+ cell = load_cell_from_pdb(pdb);
+ free(pdb);
+
if ( strcmp(filename, "-") == 0 ) {
fh = stdin;
} else {
@@ -475,6 +477,11 @@ int main(int argc, char *argv[])
delete_items(items);
free(sym);
+ free(model);
+ free(model_counts);
+ free(new_pattern);
+ free(output);
+ free(cell);
return 0;
}