]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
pcre: use pcre_free_study to free the study data 1887/head
authorVictor Julien <victor@inliniac.net>
Tue, 1 Mar 2016 07:59:07 +0000 (08:59 +0100)
committerVictor Julien <victor@inliniac.net>
Tue, 1 Mar 2016 07:59:07 +0000 (08:59 +0100)
src/detect-pcre.c

index c14fe9f51207f100c36501089d8762b70e74d52e..563a6d8844712d57ae47341cb27afcaa81e09a90 100644 (file)
@@ -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;