aboutsummaryrefslogtreecommitdiff
path: root/src/peaks.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/peaks.c')
-rw-r--r--src/peaks.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/peaks.c b/src/peaks.c
index 99598fa1..69859c9a 100644
--- a/src/peaks.c
+++ b/src/peaks.c
@@ -979,14 +979,18 @@ void output_pixels(struct image *image, UnitCell *cell,
yp = ymomv / (double)intensity;
fprintf(ofh, "%3i %3i %3i %6f (at %5.2f,%5.2f)\n",
- image->hits[i].h, image->hits[i].k, image->hits[i].l,
- intensity, xp, yp);
+ it->h, it->k, it->l, intensity, xp, yp);
}
- fprintf(ofh, "No peak statistics, because output_pixels() was used.");
+ fprintf(ofh, "No peak statistics, because output_pixels() was used.\n");
/* Blank line at end */
fprintf(ofh, "\n");
+ free(xmom);
+ free(ymom);
+ free(intensities);
+ delete_items(obs);
+
if ( mutex != NULL ) pthread_mutex_unlock(mutex);
}