nl80211: Unregister forgotten eloop socket on init failure

This commit is contained in:
Jouni Malinen 2010-03-06 22:37:48 +02:00
parent 8b897f5a17
commit 05ba8690cb

View file

@ -1293,6 +1293,7 @@ failed:
nl_cache_free(drv->nl_cache);
nl_handle_destroy(drv->nl_handle);
nl_cb_put(drv->nl_cb);
eloop_unregister_read_sock(nl_socket_get_fd(drv->nl_handle_event));
os_free(drv);
return NULL;