platform: fix leak when netlink dump is too large

This commit is contained in:
Dan Williams
2016-01-21 12:28:13 -06:00
parent 778207f23e
commit 356b4ce29c

View File

@@ -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;
}