summaryrefslogtreecommitdiff
path: root/src/thumbnail.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/thumbnail.c')
-rw-r--r--src/thumbnail.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/thumbnail.c b/src/thumbnail.c
index 191fc8e..f7a31c6 100644
--- a/src/thumbnail.c
+++ b/src/thumbnail.c
@@ -921,11 +921,14 @@ int feh_thumbnail_setup_thumbnail_dir(void)
weprintf("unable to create %s directory", dir_thumbnails);
}
+ free(dir_thumbnails);
+
if (mkdir(dir, 0700) == -1)
weprintf("unable to create %s directory", dir);
else
status = 1;
}
+ free(dir);
}
return status;