diff options
| -rw-r--r-- | src/sp_pcre_compat.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sp_pcre_compat.c b/src/sp_pcre_compat.c index adcdee7..3bd00ca 100644 --- a/src/sp_pcre_compat.c +++ b/src/sp_pcre_compat.c | |||
| @@ -1,7 +1,9 @@ | |||
| 1 | #include "php_snuffleupagus.h" | 1 | #include "php_snuffleupagus.h" |
| 2 | 2 | ||
| 3 | inline void sp_pcre_free(sp_pcre* regexp) { | 3 | inline void sp_pcre_free(sp_pcre* regexp) { |
| 4 | #ifdef SP_HAS_PCRE2 | ||
| 4 | pcre2_code_free(regexp); | 5 | pcre2_code_free(regexp); |
| 6 | #endif | ||
| 5 | regexp = NULL; | 7 | regexp = NULL; |
| 6 | } | 8 | } |
| 7 | 9 | ||
