diff options
author | Thomas White <taw@physics.org> | 2021-04-14 10:29:04 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2021-04-14 10:29:04 +0200 |
commit | 0dcd6c7e2fbfe78e4d2f26e01de0d4ea032d8fd6 (patch) | |
tree | 0f30a787c6068d1262e27c90318eb85b73856425 /src | |
parent | 6a98c9ddf63c939a7b8c9097f272c7cb359eded4 (diff) |
cell_tool: Fix a big memory leak
Diffstat (limited to 'src')
-rw-r--r-- | src/cell_tool.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cell_tool.c b/src/cell_tool.c index 493334b4..8ed674f9 100644 --- a/src/cell_tool.c +++ b/src/cell_tool.c @@ -318,7 +318,10 @@ static int find_ambi(UnitCell *cell, SymOpList *sym, double ltl, double atl) } } - if ( intmat_det(m) != +1 ) continue; + if ( intmat_det(m) != +1 ) { + intmat_free(m); + continue; + } nc = cell_transform_intmat(cell, m); |