diff options
Diffstat (limited to 'dist2/src/pcre2_match_data.c')
-rw-r--r-- | dist2/src/pcre2_match_data.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/dist2/src/pcre2_match_data.c b/dist2/src/pcre2_match_data.c index ccc5f674..b297f326 100644 --- a/dist2/src/pcre2_match_data.c +++ b/dist2/src/pcre2_match_data.c @@ -7,7 +7,7 @@ and semantics are as close as possible to those of the Perl 5 language. Written by Philip Hazel Original API code Copyright (c) 1997-2012 University of Cambridge - New API code Copyright (c) 2016-2018 University of Cambridge + New API code Copyright (c) 2016-2017 University of Cambridge ----------------------------------------------------------------------------- Redistribution and use in source and binary forms, with or without @@ -63,7 +63,6 @@ yield = PRIV(memctl_malloc)( (pcre2_memctl *)gcontext); if (yield == NULL) return NULL; yield->oveccount = oveccount; -yield->flags = 0; return yield; } @@ -94,12 +93,7 @@ PCRE2_EXP_DEFN void PCRE2_CALL_CONVENTION pcre2_match_data_free(pcre2_match_data *match_data) { if (match_data != NULL) - { - if ((match_data->flags & PCRE2_MD_COPIED_SUBJECT) != 0) - match_data->memctl.free((void *)match_data->subject, - match_data->memctl.memory_data); match_data->memctl.free(match_data, match_data->memctl.memory_data); - } } |