diff options
-rw-r--r-- | src/cell.c | 3 | ||||
-rw-r--r-- | src/indexamajig.c | 5 |
2 files changed, 3 insertions, 5 deletions
@@ -351,7 +351,6 @@ int cell_get_reciprocal(UnitCell *cell, gsl_matrix_set(m, 2, 2, cell->cz); /* Invert */ - /* Invert */ perm = gsl_permutation_alloc(m->size1); if ( perm == NULL ) { ERROR("Couldn't allocate permutation\n"); @@ -381,6 +380,8 @@ int cell_get_reciprocal(UnitCell *cell, free(cell); return -1; } + gsl_permutation_free(perm); + gsl_matrix_free(m); /* Transpose */ gsl_matrix_transpose(inv); diff --git a/src/indexamajig.c b/src/indexamajig.c index 71fdf26d..da23858d 100644 --- a/src/indexamajig.c +++ b/src/indexamajig.c @@ -327,9 +327,6 @@ static void *process_image(void *pargsv) /* Only free cell if found */ free(image.indexed_cell); - /* Free detector panel records */ - free(image.det.panels); - done: free(image.data); free(image.det.panels); @@ -477,7 +474,7 @@ int main(int argc, char *argv[]) } if ( prefix == NULL ) { - prefix = ""; + prefix = strdup(""); } if ( nthreads == 0 ) { |