From 8c8c1d5d52096a24e751f07d94972253a0e5054c Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 28 Mar 2012 10:53:32 +0200 Subject: feh_magick_load_image: Fix memory leak when encountering unloadable file --- src/imlib.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/imlib.c') 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) { -- cgit v1.2.3