template logger - fix coverity CID 1324964

null: At condition templatejs != NULL, the value of templatejs must be
NULL.
dead_error_condition: The condition templatejs != NULL cannot be true.
113    if (templatejs != NULL) {
CID 1324964 (#1 of 1): Logically dead code (DEADCODE)
dead_error_line: Execution cannot reach this statement:
json_decref(templatejs);.
114        json_decref(templatejs);
115    }
pull/2489/head
Jason Ish 9 years ago committed by Victor Julien
parent a10a9220cf
commit d09cd16c8c

@ -110,9 +110,6 @@ static int JsonTemplateLogger(ThreadVars *tv, void *thread_data,
return TM_ECODE_OK;
error:
if (templatejs != NULL) {
json_decref(templatejs);
}
json_decref(js);
return TM_ECODE_FAILED;
}

Loading…
Cancel
Save