As pointed by Coverity, a temporary proplist is created with the list of keys to be removed from the source proplist, but this temporary proplist was not released at the end, leaking memory.
Signed-off-by: Christophe CURIS <[email protected]> --- WINGs/proplist.c | 1 + 1 file changed, 1 insertion(+) diff --git a/WINGs/proplist.c b/WINGs/proplist.c index 28a3ae2..5f68eac 100644 --- a/WINGs/proplist.c +++ b/WINGs/proplist.c @@ -1213,6 +1213,7 @@ WMPropList *WMSubtractPLDictionaries(WMPropList * dest, WMPropList * source, Boo for (i = 0; i < WMGetArrayItemCount(keys->d.array); i++) { WMRemoveFromPLDictionary(dest, WMGetFromArray(keys->d.array, i)); } + WMReleasePropList(keys); return dest; } -- 2.1.4 -- To unsubscribe, send mail to [email protected].
