aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-07-06 18:04:57 +0200
committerThomas White <taw@physics.org>2012-02-22 15:26:52 +0100
commit0bd1f78e65bf02dfff19b20f5883978c12f6d766 (patch)
tree690ff7a349a8fe55e4b7721de4deef7968e45018
parent8cb69e84552e0c2f144e145881a78f0db674201f (diff)
Close the detector geometry file after use
-rw-r--r--src/detector.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/detector.c b/src/detector.c
index dcc5830d..97e62202 100644
--- a/src/detector.c
+++ b/src/detector.c
@@ -286,5 +286,7 @@ struct detector *get_detector_geometry(const char *filename)
STATUS("Panel %i, res = %f\n", i, det->panels[i].res);
}
+ fclose(fh);
+
return det;
}