From 4907824168380a820e08bb05e18cd516e1bab168 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Thu, 12 Jun 2014 23:12:52 +1000 Subject: [PATCH] id_val should be a duplicated json object --- src/stratifier.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stratifier.c b/src/stratifier.c index c80579e3..15598328 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -1758,7 +1758,7 @@ static void parse_instance_msg(int client_id, json_t *msg) json_t *json_msg; json_msg = json_object(); - id_val = json_object_get(msg, "id"); + id_val = json_object_dup(msg, "id"); if (unlikely(!id_val)) { err_val = json_string("-1:id not found"); goto out;