From: Victor Julien Date: Tue, 1 Mar 2016 07:59:07 +0000 (+0100) Subject: pcre: use pcre_free_study to free the study data X-Git-Tag: suricata-3.0.1RC1~96 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ecb79391a0b7af9d462b8fc5de6ceb026cbaa5d6;p=thirdparty%2Fsuricata.git pcre: use pcre_free_study to free the study data --- diff --git a/src/detect-pcre.c b/src/detect-pcre.c index c14fe9f512..563a6d8844 100644 --- a/src/detect-pcre.c +++ b/src/detect-pcre.c @@ -581,7 +581,7 @@ error: if (pd != NULL && pd->re != NULL) pcre_free(pd->re); if (pd != NULL && pd->sd != NULL) - pcre_free(pd->sd); + pcre_free_study(pd->sd); if (pd) SCFree(pd); return NULL; @@ -807,7 +807,7 @@ void DetectPcreFree(void *ptr) if (pd->re != NULL) pcre_free(pd->re); if (pd->sd != NULL) - pcre_free(pd->sd); + pcre_free_study(pd->sd); SCFree(pd); return;