mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-09-06 17:14:02 +00:00
libnm,tests: fix error leak
This commit is contained in:
parent
a4492f4145
commit
3254965067
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue