BUGFIX wrong variable freed
diff --git a/src/netopeerguid.c b/src/netopeerguid.c
index 8b4d82a..901e7e9 100644
--- a/src/netopeerguid.c
+++ b/src/netopeerguid.c
@@ -282,7 +282,7 @@
             }
             json_object_object_add(s->hello_message, "models", json_obj);
 
-            lyd_free(node);
+            lyd_free(yanglib);
         }
 
         DEBUG("%s", json_object_to_json_string(s->hello_message));