mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-05 03:00:29 +01:00
platform: fix leak when netlink dump is too large
This commit is contained in:
parent
778207f23e
commit
356b4ce29c
1 changed files with 2 additions and 0 deletions
|
|
@ -5530,6 +5530,8 @@ continue_reading:
|
|||
|
||||
if (!handle_events) {
|
||||
/* we read until failure or there is nothing to read (EAGAIN). */
|
||||
g_clear_pointer (&buf, free);
|
||||
g_clear_pointer (&creds, free);
|
||||
goto continue_reading;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue