From e64db6bb405ba069bfe0e7d952471f69c512a522 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sun, 25 Jan 2015 12:41:06 +1100 Subject: [PATCH] Fix memleak on each reject reason message --- src/stratifier.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stratifier.c b/src/stratifier.c index bc20a054..59c889f3 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -2857,7 +2857,7 @@ out_unlock: json_set_double(val, "sdiff", sdiff); json_set_string(val, "hash", hexhash); json_set_bool(val, "result", result); - json_object_set(val, "reject-reason", json_object_dup(json_msg, "reject-reason")); + json_object_set(val, "reject-reason", json_object_get(json_msg, "reject-reason")); json_object_set(val, "error", *err_val); json_set_int(val, "errn", err); json_set_string(val, "createdate", cdfield);