From 3af52d86f73986e5459444509b53302d400c84b6 Mon Sep 17 00:00:00 2001 From: Antonin Décimo Date: Wed, 7 Aug 2019 16:04:36 +0200 Subject: Fix memory leaks --- swaybar/tray/icon.c | 1 + 1 file changed, 1 insertion(+) (limited to 'swaybar') diff --git a/swaybar/tray/icon.c b/swaybar/tray/icon.c index c7e7f6bc..429bea36 100644 --- a/swaybar/tray/icon.c +++ b/swaybar/tray/icon.c @@ -207,6 +207,7 @@ static struct icon_theme *read_theme_file(char *basedir, char *theme_name) { struct icon_theme *theme = calloc(1, sizeof(struct icon_theme)); if (!theme) { + fclose(theme_file); return NULL; } theme->subdirs = create_list(); -- cgit v1.2.3-54-g00ecf