From a18c75d375eb2acbb53a009d08a8ec30982635e8 Mon Sep 17 00:00:00 2001 From: Andrew Zaborowski Date: Wed, 18 Mar 2020 15:45:23 +0100 Subject: [PATCH] frame-xchg: Actually free duplicate watches Fix a potential leak when we need to drop an existing watch because it's being replaced with a new one. --- src/frame-xchg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/frame-xchg.c b/src/frame-xchg.c index ce69c454..fa4abb7c 100644 --- a/src/frame-xchg.c +++ b/src/frame-xchg.c @@ -522,6 +522,7 @@ static bool frame_watch_check_duplicate(void *data, void *user_data) } /* Drop the existing watch as a duplicate of the new one */ + frame_watch_free(&watch->super); return true; }