platform: fix leak when netlink dump is too large
This commit is contained in:
@@ -5530,6 +5530,8 @@ continue_reading:
|
|||||||
|
|
||||||
if (!handle_events) {
|
if (!handle_events) {
|
||||||
/* we read until failure or there is nothing to read (EAGAIN). */
|
/* we read until failure or there is nothing to read (EAGAIN). */
|
||||||
|
g_clear_pointer (&buf, free);
|
||||||
|
g_clear_pointer (&creds, free);
|
||||||
goto continue_reading;
|
goto continue_reading;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user