diff options
author | Thomas Haller <thaller@redhat.com> | 2016-01-12 14:13:21 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2016-01-12 14:35:35 +0100 |
commit | 9f449f604d2cf164fb9aaf433d76027c4edf912a (patch) | |
tree | 486cbc217c167b75b5520f7e91b4f1639afdba7c | |
parent | 26c994668ad258a818865574113a8be5f7b7f322 (diff) | |
download | NetworkManager-9f449f604d2cf164fb9aaf433d76027c4edf912a.tar.gz |
fixup! core: add NMArpingManager
Use slice allocator.
-rw-r--r-- | src/devices/nm-arping-manager.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/nm-arping-manager.c b/src/devices/nm-arping-manager.c index 64de3cc0e9..19bb95c282 100644 --- a/src/devices/nm-arping-manager.c +++ b/src/devices/nm-arping-manager.c @@ -101,7 +101,7 @@ nm_arping_manager_add_address (NMArpingManager *self, in_addr_t address) return FALSE; } - info = g_new0 (AddressInfo, 1); + info = g_slice_new0 (AddressInfo); info->address = address; info->manager = g_object_ref (self); @@ -410,7 +410,7 @@ destroy_address_info (gpointer data) } g_object_unref (info->manager); - g_free (info); + g_slice_free (AddressInfo, info); } static void |