aboutsummaryrefslogtreecommitdiff
path: root/src/indexamajig.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-04-01 16:24:15 +0200
committerThomas White <taw@physics.org>2010-04-01 16:24:15 +0200
commit5b27e129e1fdbbb7f99cc7ed9d9d211010b4cee9 (patch)
treea69b581f3babec6d2edf2be68de5618f01a4b52c /src/indexamajig.c
parentfced9d2b5b9154205886e12b5cde73292db3b59d (diff)
Fix a couple of memory bugs
Diffstat (limited to 'src/indexamajig.c')
-rw-r--r--src/indexamajig.c5
1 files changed, 1 insertions, 4 deletions
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 ) {