app-layer-smtp: fix SMTPTransactionFree function

A typo was causing some freeing tasks not to be executed.
pull/1454/head
Eric Leblond 11 years ago committed by Victor Julien
parent 91ddf85323
commit 7b8184947a

@ -1126,8 +1126,9 @@ static void SMTPTransactionFree(SMTPTransaction *tx, SMTPState *state)
/* Free list of MIME message recursively */ /* Free list of MIME message recursively */
MimeDecFreeEntity(tx->msg_head); MimeDecFreeEntity(tx->msg_head);
if (tx->decoder_events != NULL) { if (tx->decoder_events != NULL)
AppLayerDecoderEventsFreeEvents(&tx->decoder_events); AppLayerDecoderEventsFreeEvents(&tx->decoder_events);
if (tx->de_state != NULL) if (tx->de_state != NULL)
DetectEngineStateFree(tx->de_state); DetectEngineStateFree(tx->de_state);
#if 0 #if 0
@ -1136,7 +1137,6 @@ static void SMTPTransactionFree(SMTPTransaction *tx, SMTPState *state)
else else
smtp_state->events = 0; smtp_state->events = 0;
#endif #endif
}
SCFree(tx); SCFree(tx);
} }

Loading…
Cancel
Save