From d4c4c2c76d69ce2a7fee807e947590cccd4121c8 Mon Sep 17 00:00:00 2001 From: ckolivas Date: Thu, 29 Jan 2015 15:03:19 +1100 Subject: [PATCH] Revert "Sanity check various jp parameters before trying to decref them" This reverts commit 3e1cedfc7490af09cd585914e92688c38cac4a6b. Unnecessary --- src/stratifier.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/stratifier.c b/src/stratifier.c index 7538a8ef..b6370468 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -3488,12 +3488,9 @@ static void ssend_process(ckpool_t *ckp, smsg_t *msg) static void discard_json_params(json_params_t *jp) { - if (likely(jp->method)) - json_decref(jp->method); - if (likely(jp->params)) - json_decref(jp->params); - if (likely(jp->id_val)) - json_decref(jp->id_val); + json_decref(jp->method); + json_decref(jp->params); + json_decref(jp->id_val); free(jp); }