aboutsummaryrefslogtreecommitdiff
path: root/src/cell.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-09-08 12:22:37 +0200
committerThomas White <taw@physics.org>2012-02-22 15:26:57 +0100
commitc81d04eb776260f4499f3f3824bc5d02e42ef58c (patch)
tree83a57f955a65d65e5c65016662f5a7230cc5fe0d /src/cell.c
parent9526f8c65df5fdb21247b57cd414c258375dc798 (diff)
Fix unit cell point group memory leak
Diffstat (limited to 'src/cell.c')
-rw-r--r--src/cell.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cell.c b/src/cell.c
index a13ad577..757ce649 100644
--- a/src/cell.c
+++ b/src/cell.c
@@ -86,6 +86,13 @@ UnitCell *cell_new()
}
+void cell_free(UnitCell *cell)
+{
+ free(cell->pointgroup);
+ free(cell);
+}
+
+
void cell_set_parameters(UnitCell *cell, double a, double b, double c,
double alpha, double beta, double gamma)
{