commit a18c75d375eb2acbb53a009d08a8ec30982635e8
parent 9ff1c4da3a6ef2b3ab16e7376d3b957f28bbde15
Author: Andrew Zaborowski <andrew.zaborowski@intel.com>
Date: Wed, 18 Mar 2020 15:45:23 +0100
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.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git 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;
}