manager: Make sure pending_wiphys remains NULL on error

This commit is contained in:
Denis Kenzior 2019-10-11 15:41:16 -05:00
parent 2d8d47c9dd
commit cc2d4f97e2
1 changed files with 2 additions and 0 deletions

View File

@ -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;