aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/cell.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2024-04-18 14:32:14 +0200
committerThomas White <taw@physics.org>2024-04-18 14:32:14 +0200
commit52bde38abbcb53d163355a71fc9e99332ffe3dee (patch)
tree54bf334103708bcbf0b821c583b06f66769edf22 /libcrystfel/src/cell.c
parent536d1a563e5c93cbbefb3556ea897acaf8fa70ce (diff)
parent62a2fdee1b7e69a1fe1ecb58e286866c41b6bb81 (diff)
Merge branch 'julia'
Diffstat (limited to 'libcrystfel/src/cell.c')
-rw-r--r--libcrystfel/src/cell.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcrystfel/src/cell.c b/libcrystfel/src/cell.c
index 775567e3..60f6ef58 100644
--- a/libcrystfel/src/cell.c
+++ b/libcrystfel/src/cell.c
@@ -109,7 +109,7 @@ UnitCell *cell_new()
{
UnitCell *cell;
- cell = malloc(sizeof(UnitCell));
+ cell = cfmalloc(sizeof(UnitCell));
if ( cell == NULL ) return NULL;
cell->a = 1.0;
@@ -140,7 +140,7 @@ UnitCell *cell_new()
void cell_free(UnitCell *cell)
{
if ( cell == NULL ) return;
- free(cell);
+ cffree(cell);
}