summaryrefslogtreecommitdiff
path: root/src/sp_pcre_compat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp_pcre_compat.c')
-rw-r--r--src/sp_pcre_compat.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sp_pcre_compat.c b/src/sp_pcre_compat.c
index 09a2fc7..adcdee7 100644
--- a/src/sp_pcre_compat.c
+++ b/src/sp_pcre_compat.c
@@ -1,5 +1,10 @@
1#include "php_snuffleupagus.h" 1#include "php_snuffleupagus.h"
2 2
3inline void sp_pcre_free(sp_pcre* regexp) {
4 pcre2_code_free(regexp);
5 regexp = NULL;
6}
7
3sp_pcre* sp_pcre_compile(const char* const pattern) { 8sp_pcre* sp_pcre_compile(const char* const pattern) {
4 assert(NULL != pattern); 9 assert(NULL != pattern);
5 10