diff options
author | Thomas Haller <thaller@redhat.com> | 2015-08-20 13:32:34 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2015-08-21 17:10:24 +0200 |
commit | d188dbe9c30396022f0b0286503172dcde346315 (patch) | |
tree | f31ff3d65faf82965dc5b709c055593df569c4f5 | |
parent | 9fe46cd24f6899f50f13c7c3d7d7d7e4ea30583a (diff) | |
download | NetworkManager-d188dbe9c30396022f0b0286503172dcde346315.tar.gz |
manager: use slice allocator for PropertyFilterData
-rw-r--r-- | src/nm-manager.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nm-manager.c b/src/nm-manager.c index a196b72d9c..7ea640357d 100644 --- a/src/nm-manager.c +++ b/src/nm-manager.c @@ -4391,7 +4391,7 @@ free_property_filter_data (PropertyFilterData *pfd) g_object_unref (pfd->message); g_object_unref (pfd->subject); g_object_unref (pfd->object); - g_free (pfd); + g_slice_free (PropertyFilterData, pfd); } static void @@ -4547,7 +4547,7 @@ prop_filter (GDBusConnection *connection, * make other D-Bus calls from. In particular, we cannot call * org.freedesktop.DBus.GetConnectionUnixUser to find the remote UID. */ - pfd = g_new0 (PropertyFilterData, 1); + pfd = g_slice_new0 (PropertyFilterData); pfd->self = g_object_ref (self); pfd->connection = g_object_ref (connection); pfd->message = message; |