summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2012-03-28 10:53:32 +0200
committerDaniel Friesel <derf@finalrewind.org>2012-03-28 10:53:32 +0200
commit8c8c1d5d52096a24e751f07d94972253a0e5054c (patch)
tree6b7221a807a2771e10c02c952db7db9a67eae9c4 /src
parent877e6346d5512c44b9c27f4809c0742766eadac2 (diff)
feh_magick_load_image: Fix memory leak when encountering unloadable file
Diffstat (limited to 'src')
-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) {