From 04d2f1030d540468f467074c64ac26c8e7bda74e Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 5 Dec 2020 22:29:01 +0100 Subject: fix memory leak when (re)loading HTTP files with --no-conversion-cache --- 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 f21290f..54bc327 100644 --- a/src/imlib.c +++ b/src/imlib.c @@ -383,7 +383,7 @@ int feh_load_image(Imlib_Image * im, feh_file * file) // add_file_to_rm_filelist duplicates tmpname add_file_to_rm_filelist(tmpname); - if (image_source != SRC_HTTP && !opt.use_conversion_cache) + if (!opt.use_conversion_cache) free(tmpname); } else if (im) { #ifdef HAVE_LIBEXIF -- cgit v1.2.3