supplicant: fix leaking handle in nm_supplicant_manager_create_interface()

Found by valgrind.

Fixes: b83f07916a ('supplicant: large rework of wpa_supplicant handling')
This commit is contained in:
Thomas Haller 2021-06-10 10:35:56 +02:00
parent 6813a4fe75
commit 01df4a5ad0
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -382,7 +382,7 @@ _create_iface_complete(NMSupplMgrCreateIfaceHandle *handle,
nm_clear_g_cancellable(&handle->cancellable);
nm_ref_string_unref(handle->name_owner);
nm_g_slice_free_fcn(handle);
nm_g_slice_free(handle);
}
static void