diff options
Diffstat (limited to 'src/reintegrate.c')
-rw-r--r-- | src/reintegrate.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/reintegrate.c b/src/reintegrate.c index e306e601..b5a388a6 100644 --- a/src/reintegrate.c +++ b/src/reintegrate.c @@ -170,7 +170,7 @@ static void *get_image(void *qp) if ( qargs->config_basename ) { char *tmp; - tmp = strdup(basename(filename)); + tmp = safe_basename(filename); free(filename); filename = tmp; } @@ -181,6 +181,7 @@ static void *get_image(void *qp) pargs->cell = cell; pargs->filename = malloc(1024); snprintf(pargs->filename, 1023, "%s%s", qargs->prefix, filename); + free(filename); return pargs; } |