diff options
author | Dan Williams <dcbw@redhat.com> | 2016-01-21 12:28:13 -0600 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2016-01-21 12:28:13 -0600 |
commit | 356b4ce29c94f343abf72bfde64ed34dd710755d (patch) | |
tree | e05662f9cad92f3954ed6eb5224c669e0c7c6238 | |
parent | 778207f23eb2ac022b2ee47968a484fdb94626fe (diff) | |
download | NetworkManager-356b4ce29c94f343abf72bfde64ed34dd710755d.tar.gz |
platform: fix leak when netlink dump is too large
-rw-r--r-- | src/platform/nm-linux-platform.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/platform/nm-linux-platform.c b/src/platform/nm-linux-platform.c index 85b6422530..b9cc7abc52 100644 --- a/src/platform/nm-linux-platform.c +++ b/src/platform/nm-linux-platform.c @@ -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; } |