Fix wrong order of error handling in netlink setup
diff --git a/plugins/netlink.c b/plugins/netlink.c
index e85d264..7dd4e33 100644
--- a/plugins/netlink.c
+++ b/plugins/netlink.c
@@ -91,8 +91,8 @@
 	cache = genl_ctrl_alloc_cache(handle);
 	if (!cache) {
 		error("Failed to allocate generic netlink cache");
-		return -ENOMEM;
 		nl_handle_destroy(handle);
+		return -ENOMEM;
 	}
 
 	family = genl_ctrl_search_by_name(cache, "bluetooth");