From 43cb03e314513a9a9cecf6d8922146832f0c6c2b Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 28 Jan 2021 19:48:51 +0100 Subject: fix memory leak (free exec_absolute_path) --- src/wallpaper.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wallpaper.c b/src/wallpaper.c index a34f033..8660cde 100644 --- a/src/wallpaper.c +++ b/src/wallpaper.c @@ -334,6 +334,7 @@ void feh_wm_gen_bg_script(char* fil, int centered, int scaled, int filled, int u fclose(fp); } free(path); + free(exec_absolute_path); } void feh_wm_set_bg(char *fil, Imlib_Image im, int centered, int scaled, -- cgit v1.2.3