BUGFIX increment reference count of hello message
diff --git a/src/mod_netconf.c b/src/mod_netconf.c
index f307930..474bf05 100644
--- a/src/mod_netconf.c
+++ b/src/mod_netconf.c
@@ -242,9 +242,10 @@
 		if (j_old_sid != NULL) {
 			old_sid = strdup(j_old_sid);
 		}
+		json_object_put(s->hello_message);
 		s->hello_message = NULL;
 	}
-	s->hello_message = json_object_new_object();
+	s->hello_message = json_object_get(json_object_new_object());
 	if (session != NULL) {
 		if (old_sid != NULL) {
 			/* use previous sid */