diff options
Diffstat (limited to 'src/gui_index.c')
-rw-r--r-- | src/gui_index.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui_index.c b/src/gui_index.c index 55a758f0..a9037003 100644 --- a/src/gui_index.c +++ b/src/gui_index.c @@ -830,7 +830,10 @@ static char **indexamajig_command_line(const char *geom_filename, if ( args == NULL ) return NULL; indexamajig_path = get_crystfel_exe("indexamajig"); - if ( indexamajig_path == NULL ) return NULL; + if ( indexamajig_path == NULL ) { + free(args); + return NULL; + } /* The basics */ add_arg(args, n_args++, indexamajig_path); |