diff options
author | Andrew Zaborowski <andrew.zaborowski@intel.com> | 2020-03-18 15:45:23 +0100 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2020-03-17 15:44:10 -0500 |
commit | a18c75d375eb2acbb53a009d08a8ec30982635e8 (patch) | |
tree | 9095ddfc98e0ee41495dd6975d497e8abf87a275 | |
parent | 9ff1c4da3a6ef2b3ab16e7376d3b957f28bbde15 (diff) | |
download | iwd-a18c75d375eb2acbb53a009d08a8ec30982635e8.tar.gz |
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.
-rw-r--r-- | src/frame-xchg.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/frame-xchg.c b/src/frame-xchg.c index ce69c4546..fa4abb7c3 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; } |