diff options
author | Dmitry Mikhirev | 2014-11-29 13:21:11 +0300 |
---|---|---|
committer | Dmitry Mikhirev | 2014-11-29 13:21:11 +0300 |
commit | fd29160ed226454b2a0d2540025e2bcd305e9c93 (patch) | |
tree | 144faf98483540608060ab1bb33a88cc9577df7e | |
parent | 68eb59a34f3f07c9aa702b6e927b656dcce79bed (diff) | |
download | make_pcre-fd29160ed226454b2a0d2540025e2bcd305e9c93.tar.gz make_pcre-fd29160ed226454b2a0d2540025e2bcd305e9c93.tar.bz2 make_pcre-fd29160ed226454b2a0d2540025e2bcd305e9c93.tar.xz make_pcre-fd29160ed226454b2a0d2540025e2bcd305e9c93.zip |
attempt to fix compatibility with old libpcre versions
-rw-r--r-- | pcre.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -402,7 +402,11 @@ end_match: pcre_free(re); } if (sd != NULL) { + #if (PCRE_MAJOR < 8) || ((PCRE_MAJOR == 8) && (PCRE_MINOR < 20)) + pcre_free(sd); + #else pcre_free_study(sd); + #endif } /* set make vars to captured substrings */ |