diff options
author | Thomas White <taw@physics.org> | 2012-12-14 11:51:57 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-12-14 11:59:23 +0100 |
commit | b22b9de18152c917d4e9f733c41402d9935ae93d (patch) | |
tree | ce3019e93ef0c40e5d6988956bb1f1b894540847 /libcrystfel/src/detector.c | |
parent | e745af481e176834e804b2eec59b7170e260ce81 (diff) |
Beam and detector geometry don't need to be copied
The did when this was all done with threads, but with separate processes each worker has its own copy of
the structure already. It can be updated after every image and freed at the end.
Diffstat (limited to 'libcrystfel/src/detector.c')
-rw-r--r-- | libcrystfel/src/detector.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libcrystfel/src/detector.c b/libcrystfel/src/detector.c index 4216838d..41ebcc9a 100644 --- a/libcrystfel/src/detector.c +++ b/libcrystfel/src/detector.c @@ -462,8 +462,6 @@ void fill_in_values(struct detector *det, struct hdfile *f) if ( p->clen_from != NULL ) { p->clen = get_value(f, p->clen_from) * 1.0e-3; - free(p->clen_from); - p->clen_from = NULL; } p->clen += p->coffset; |