Fix pcre
parent
623e10d7a0
commit
ac1f66ee1d
|
@ -180,9 +180,9 @@ static void condition_free(condition *c) {
|
|||
g_string_free(c->rvalue.string, TRUE);
|
||||
break;
|
||||
#ifdef HAVE_PCRE_H
|
||||
case COND_VALUE_REGEXP
|
||||
if (c->rvalue.regex) pcre_free(c->rvalue.regex);
|
||||
if (c->rvalue.regex_study) pcre_free(c->rvalue.regex_study);
|
||||
case COND_VALUE_REGEXP:
|
||||
if (c->rvalue.pcre.regex) pcre_free(c->rvalue.pcre.regex);
|
||||
if (c->rvalue.pcre.regex_study) pcre_free(c->rvalue.pcre.regex_study);
|
||||
#endif
|
||||
break;
|
||||
case COND_VALUE_SOCKET_IPV4:
|
||||
|
|
|
@ -88,7 +88,7 @@ struct condition_rvalue {
|
|||
struct {
|
||||
pcre *regex;
|
||||
pcre_extra *regex_study;
|
||||
};
|
||||
} pcre;
|
||||
#endif
|
||||
gint64 i;
|
||||
struct {
|
||||
|
|
|
@ -40,6 +40,10 @@
|
|||
# include <unistd.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_PCRE_H
|
||||
#include <pcre.h>
|
||||
#endif
|
||||
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
|
||||
|
|
Loading…
Reference in New Issue