diff options
author | Thomas White <taw@bitwiz.org.uk> | 2012-02-21 17:16:07 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:45 +0100 |
commit | 75a5b1a7edf3904f09bf1765fc762c5cc478d1e6 (patch) | |
tree | d089c11b67afeeda3b611c6f6988fcd58c8ffa92 /libcrystfel/src/detector.c | |
parent | bdbc9bfa11c862bc1eb72785cab512845bc2818d (diff) |
Fix some memory leaks
Diffstat (limited to 'libcrystfel/src/detector.c')
-rw-r--r-- | libcrystfel/src/detector.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libcrystfel/src/detector.c b/libcrystfel/src/detector.c index 5b0bad41..91aa6c6e 100644 --- a/libcrystfel/src/detector.c +++ b/libcrystfel/src/detector.c @@ -943,6 +943,10 @@ void free_detector_geometry(struct detector *det) } free(det->rigid_groups); + for ( i=0; i<det->n_panels; i++ ) { + free(det->panels[i].clen_from); + } + free(det->panels); free(det->bad); free(det->mask); |