diff --git a/src/app-layer-htp.c b/src/app-layer-htp.c index e1a513a8ea..db72614862 100644 --- a/src/app-layer-htp.c +++ b/src/app-layer-htp.c @@ -321,6 +321,9 @@ static void HtpTxUserDataFree(HtpTxUserData *htud) AppLayerDecoderEventsFreeEvents(&htud->decoder_events); if (htud->boundary) HTPFree(htud->boundary, htud->boundary_len); + if (htud->de_state != NULL) { + DetectEngineStateFree(htud->de_state); + } HTPFree(htud, sizeof(HtpTxUserData)); } }