diff --git a/src/detect-content.c b/src/detect-content.c index 9e841af054..d0be107daf 100644 --- a/src/detect-content.c +++ b/src/detect-content.c @@ -379,6 +379,8 @@ void DetectContentFree(DetectEngineCtx *de_ctx, void *ptr) if (cd == NULL) SCReturn; + if (cd->replace) + SCFree(cd->replace); SpmDestroyCtx(cd->spm_ctx); SCFree(cd);