From 01df4a5ad0becdc031e39704173ea922c5dc4bd6 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Thu, 10 Jun 2021 10:35:56 +0200 Subject: [PATCH] supplicant: fix leaking handle in nm_supplicant_manager_create_interface() Found by valgrind. Fixes: b83f07916a54 ('supplicant: large rework of wpa_supplicant handling') --- src/core/supplicant/nm-supplicant-manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/supplicant/nm-supplicant-manager.c b/src/core/supplicant/nm-supplicant-manager.c index 8db44c46ef..e432889b7d 100644 --- a/src/core/supplicant/nm-supplicant-manager.c +++ b/src/core/supplicant/nm-supplicant-manager.c @@ -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