libnm,tests: fix error leak

This commit is contained in:
Dan Williams 2016-01-21 11:31:01 -06:00
parent a4492f4145
commit 3254965067

View file

@ -101,6 +101,7 @@ test_device_added (void)
/* Try deleting the device via the ordinary NM interface, which should fail */
nm_device_delete (device, NULL, &error);
g_assert_error (error, NM_DEVICE_ERROR, NM_DEVICE_ERROR_NOT_SOFTWARE);
g_clear_error (&error);
g_object_unref (client);
g_clear_pointer (&sinfo, nmtstc_service_cleanup);