]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
test/dbus-daemon: Don't leak error if no machine ID was found
authorSimon McVittie <smcv@collabora.com>
Wed, 11 Jul 2018 18:54:24 +0000 (19:54 +0100)
committerSimon McVittie <smcv@collabora.com>
Thu, 2 Aug 2018 16:15:14 +0000 (17:15 +0100)
Signed-off-by: Simon McVittie <smcv@collabora.com>
Reviewed-by: Philip Withnall <withnall@endlessm.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=107194

test/dbus-daemon.c

index f8ffbee241ab22fa1fd8d9d689ee170b5b7a462b..49fc1e3eebe537d627f2598fb8c912386ab0b204 100644 (file)
@@ -1171,6 +1171,7 @@ test_peer_get_machine_id (Fixture *f,
           /* When running unit tests during make check or make installcheck,
            * tolerate this */
           g_test_skip ("Machine UUID not available");
+          dbus_error_free (&error);
           return;
         }
       else