summaryrefslogtreecommitdiff
path: root/src/imlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/imlib.c')
-rw-r--r--src/imlib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/imlib.c b/src/imlib.c
index eda3e2a..09391fa 100644
--- a/src/imlib.c
+++ b/src/imlib.c
@@ -305,6 +305,7 @@ static char *feh_magick_load_image(char *filename)
if (!WIFEXITED(status) || (WEXITSTATUS(status) != 0)) {
close(fd);
unlink(sfn);
+ free(sfn);
sfn = NULL;
if (!opt.quiet) {