From: Simon McVittie Date: Wed, 11 Jul 2018 18:54:24 +0000 (+0100) Subject: test/dbus-daemon: Don't leak error if no machine ID was found X-Git-Tag: dbus-1.13.6~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d0413de71b98ad585fadbf5e76613e6a042af9bb;p=thirdparty%2Fdbus.git test/dbus-daemon: Don't leak error if no machine ID was found Signed-off-by: Simon McVittie Reviewed-by: Philip Withnall Bug: https://bugs.freedesktop.org/show_bug.cgi?id=107194 --- diff --git a/test/dbus-daemon.c b/test/dbus-daemon.c index f8ffbee24..49fc1e3ee 100644 --- a/test/dbus-daemon.c +++ b/test/dbus-daemon.c @@ -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