From 75511e2ec829cc2ffed94a87fbc2861b8ccb5056 Mon Sep 17 00:00:00 2001 From: Christophe CURIS Date: Mon, 16 Jun 2014 20:15:19 +0200 Subject: [PATCH] util: fix leak in setstyle (Coverity #50151+#50152) As pointed by Coverity, there are a few cases where the list of the keys of a dictionary is being requested, but at the end the array that was created to hold these keys was not freed. Signed-off-by: Christophe CURIS --- util/setstyle.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/util/setstyle.c b/util/setstyle.c index 095c0604..afd7b497 100644 --- a/util/setstyle.c +++ b/util/setstyle.c @@ -203,6 +203,7 @@ static void hackPaths(WMPropList * style, const char *prefix) } } + WMReleasePropList(keys); } static WMPropList *getColor(WMPropList * texture) @@ -313,6 +314,7 @@ static void hackStyle(WMPropList * style) } } } + WMReleasePropList(keys); if (!foundIconTitle) { /* set the default values */