smtp_state = (SMTPState *)state;
if (smtp_state == NULL) {
SCLogDebug("no smtp state, so no request logging");
+ json_decref(sjs);
SCReturnPtr(NULL, "json_t");
}
SMTPTransaction *tx = vtx;
break;
default:
/* don't know how we got here */
+ json_decref(sjs);
SCReturnPtr(NULL, "json_t");
}
if ((mime_state != NULL)) {
}
}
- if (mime_state->stack == NULL || mime_state->stack->top == NULL || mime_state->stack->top->data == NULL)
+ if (mime_state->stack == NULL || mime_state->stack->top == NULL || mime_state->stack->top->data == NULL) {
+ json_decref(sjs);
SCReturnPtr(NULL, "json_t");
+ }
entity = (MimeDecEntity *)mime_state->stack->top->data;
int attch_cnt = 0;