From cc2d4f97e28c82c7727787640e300ccf69dee721 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Fri, 11 Oct 2019 15:41:16 -0500 Subject: [PATCH] manager: Make sure pending_wiphys remains NULL on error --- src/manager.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/manager.c b/src/manager.c index f1e50421..e3f1de05 100644 --- a/src/manager.c +++ b/src/manager.c @@ -643,6 +643,8 @@ static int manager_init(void) error: l_queue_destroy(pending_wiphys, NULL); + pending_wiphys = NULL; + l_genl_family_free(nl80211); nl80211 = NULL;