summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/imlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/imlib.c b/src/imlib.c
index dcf3c5c..3f73a24 100644
--- a/src/imlib.c
+++ b/src/imlib.c
@@ -291,8 +291,8 @@ char *feh_http_load_image(char *url)
return sfn;
} else {
weprintf("open url: fdopen failed:");
- free(sfn);
unlink(sfn);
+ free(sfn);
close(fd);
}
} else {