3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-10-04 10:29:03 +02:00

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.
This commit is contained in:
Andrew Zaborowski 2020-03-18 15:45:23 +01:00 committed by Denis Kenzior
parent 9ff1c4da3a
commit a18c75d375

View File

@ -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 */ /* Drop the existing watch as a duplicate of the new one */
frame_watch_free(&watch->super);
return true; return true;
} }