diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/detector.c | 5 | ||||
-rw-r--r-- | src/pattern_sim.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/detector.c b/src/detector.c index d4744ffd..db713137 100644 --- a/src/detector.c +++ b/src/detector.c @@ -240,6 +240,11 @@ struct detector *get_detector_geometry(const char *filename) ERROR("Unrecognised field '%s'\n", path[1]); } + for ( i=0; i<n1; i++ ) free(bits[i]); + for ( i=0; i<n2; i++ ) free(path[i]); + free(bits); + free(path); + } while ( rval != NULL ); if ( det->n_panels == -1 ) { diff --git a/src/pattern_sim.c b/src/pattern_sim.c index 1f12caa2..798e9c33 100644 --- a/src/pattern_sim.c +++ b/src/pattern_sim.c @@ -474,6 +474,8 @@ skip: free(powder); free(cell); free(intensities); + free(outfile); + free(filename); return 0; } |