commit | dd5cb45f6e9b50d72066635571f701890cacacf5 | [log] [tgz] |
---|---|---|
author | Tomas Cejka <cejkat@cesnet.cz> | Wed Mar 26 15:22:00 2014 +0100 |
committer | Tomas Cejka <cejkat@cesnet.cz> | Wed Mar 26 15:22:00 2014 +0100 |
tree | 03d1dd9f4ec82159051b32f9f64917f981852a79 | |
parent | 44a54af58d61de0de0e947af6e5adc7b75ed1323 [diff] [blame] |
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 */