diff options
Diffstat (limited to 'libcrystfel/src/fom.c')
-rw-r--r-- | libcrystfel/src/fom.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcrystfel/src/fom.c b/libcrystfel/src/fom.c index 2f74e945..9ecb082d 100644 --- a/libcrystfel/src/fom.c +++ b/libcrystfel/src/fom.c @@ -731,8 +731,8 @@ static int wilson_scale(RefList *list1, RefList *list2, UnitCell *cell) if ( n == max_n ) { max_n *= 2; - x = realloc(x, max_n*sizeof(double)); - y = realloc(y, max_n*sizeof(double)); + x = srealloc(x, max_n*sizeof(double)); + y = srealloc(y, max_n*sizeof(double)); if ( (x==NULL) || (y==NULL) ) { ERROR("Failed to allocate memory for scaling.\n"); return 1; |