aboutsummaryrefslogtreecommitdiff
path: root/src/indexamajig.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2011-04-13 22:41:29 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:24 +0100
commit17f331d526fa68e01e44c55f90a00bb7b9a3d637 (patch)
tree7659452038632ea4792235ad4cd40d1425fc263c /src/indexamajig.c
parent2b01c35b2e7408b10b7958842ac07f0bb9cc1153 (diff)
Tidy up various memory leaks
Diffstat (limited to 'src/indexamajig.c')
-rw-r--r--src/indexamajig.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/indexamajig.c b/src/indexamajig.c
index a7565d01..ba921e0d 100644
--- a/src/indexamajig.c
+++ b/src/indexamajig.c
@@ -351,6 +351,7 @@ static void process_image(void *pp, int cookie)
/* Only free cell if found */
cell_free(image.indexed_cell);
+ reflist_free(image.reflections);
free(image.data);
if ( image.flags != NULL ) free(image.flags);
image_feature_list_free(image.features);
@@ -383,6 +384,7 @@ static void *get_image(void *qp)
rval = fgets(line, 1023, qargs->fh);
if ( rval == NULL ) {
free(pargs);
+ free(line);
return NULL;
}
chomp(line);
@@ -877,8 +879,8 @@ int main(int argc, char *argv[])
free(indm);
free(ipriv);
free(prefix);
- free(det->panels);
- free(det);
+ free_detector_geometry(det);
+ free(beam);
free(element);
cell_free(cell);
if ( fh != stdin ) fclose(fh);