From 39c97e28f6f3be8aedd492ca8e538a672f547529 Mon Sep 17 00:00:00 2001 From: Jonas Berlin Date: Tue, 3 Dec 2019 20:27:31 +0200 Subject: [PATCH] [ReviewFix] get_pixbuf_from_file: Free memory on error return --- src/icon.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/icon.c b/src/icon.c index 2701a27..d07e8ea 100644 --- a/src/icon.c +++ b/src/icon.c @@ -175,6 +175,7 @@ GdkPixbuf *get_pixbuf_from_file(const char *filename) if (!gdk_pixbuf_get_file_info (path, &w, &h)) { LOG_W("Failed to load image info for %s", filename); + g_free(path); g_error_free(error); return NULL; }