diff options
| author | Daniel Friesel <derf@finalrewind.org> | 2012-03-28 10:53:32 +0200 | 
|---|---|---|
| committer | Daniel Friesel <derf@finalrewind.org> | 2012-03-28 10:53:32 +0200 | 
| commit | 8c8c1d5d52096a24e751f07d94972253a0e5054c (patch) | |
| tree | 6b7221a807a2771e10c02c952db7db9a67eae9c4 /src | |
| parent | 877e6346d5512c44b9c27f4809c0742766eadac2 (diff) | |
feh_magick_load_image: Fix memory leak when encountering unloadable file
Diffstat (limited to 'src')
| -rw-r--r-- | src/imlib.c | 1 | 
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) { | 
