From 563e8c03721d9721dc5bdccd9faef6a23f677833 Mon Sep 17 00:00:00 2001 From: Andrew Potter Date: Wed, 16 Feb 2011 12:02:03 -0800 Subject: Fix use after free() --- src/imlib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/imlib.c') diff --git a/src/imlib.c b/src/imlib.c index 92c196a..2460924 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 { -- cgit v1.2.3