]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
test-privserver: Don't leak the DBusServer
authorSimon McVittie <smcv@collabora.com>
Tue, 11 Dec 2018 10:04:18 +0000 (10:04 +0000)
committerSimon McVittie <smcv@collabora.com>
Tue, 11 Dec 2018 12:21:49 +0000 (12:21 +0000)
This results in (harmless) leak reports when running under the
AddressSanitizer, which could make real leaks harder to find.

Signed-off-by: Simon McVittie <smcv@collabora.com>
test/name-test/test-privserver.c

index 1d579ba0d42e22c96d42d2e3d165e03500cd0cb6..53af6bf10d34b13b73ca8e4f0cdef3c8fbbd6915 100644 (file)
@@ -133,6 +133,8 @@ main (int argc, char *argv[])
 
   dbus_connection_unref (session);
 
+  dbus_server_unref (server);
+
   _dbus_loop_unref (loop);
 
   dbus_free (testdata);