From a5b6bbcc28348f8f66327a4a9f21b2eb8e0feb3d Mon Sep 17 00:00:00 2001 From: ph10 Date: Fri, 19 Oct 2018 15:31:16 +0000 Subject: Set subject field in match data to NULL after failed match. git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@1031 6239d852-aaf2-0410-a92c-79f79f948069 --- doc/html/pcre2api.html | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'doc/html') diff --git a/doc/html/pcre2api.html b/doc/html/pcre2api.html index 9ac4098..5faadc4 100644 --- a/doc/html/pcre2api.html +++ b/doc/html/pcre2api.html @@ -1304,9 +1304,9 @@ NULL.

NOTE: When one of the matching functions is called, pointers to the compiled pattern and the subject string are set in the match data block so that they can -be referenced by the substring extraction functions. After running a match, you -must not free a compiled pattern or a subject string until after all -operations on the +be referenced by the substring extraction functions after a successful match. +After running a match, you must not free a compiled pattern or a subject string +until after all operations on the match data block have taken place, unless, in the case of the subject string, you have used the PCRE2_COPY_MATCHED_SUBJECT option, which is described in the section entitled @@ -2420,11 +2420,12 @@ on the error, and is detailed below.

When one of the matching functions is called, pointers to the compiled pattern and the subject string are set in the match data block so that they can be -referenced by the extraction functions. After running a match, you must not -free a compiled pattern or a subject string until after all operations on the -match data block (for that match) have taken place, unless, in the case of the -subject string, you have used the PCRE2_COPY_MATCHED_SUBJECT option, which is -described in the section entitled "Option bits for pcre2_match()" +referenced by the extraction functions after a successful match. After running +a match, you must not free a compiled pattern or a subject string until after +all operations on the match data block (for that match) have taken place, +unless, in the case of the subject string, you have used the +PCRE2_COPY_MATCHED_SUBJECT option, which is described in the section entitled +"Option bits for pcre2_match()" below.

@@ -3756,7 +3757,7 @@ Cambridge, England.


REVISION

-Last updated: 17 October 2018 +Last updated: 19 October 2018
Copyright © 1997-2018 University of Cambridge.
-- cgit v1.2.1