mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-03 10:32:33 +01: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:
parent
9ff1c4da3a
commit
a18c75d375
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user