blob: cebdef900aac6a70523045bb81ab42fae23da66c [file] [log] [blame]
Elliott Hughes0c26e192019-08-07 12:24:46 -07001.TH PCRE2_MATCH_DATA_FREE 3 "16 October 2018" "PCRE2 10.33"
Janis Danisevskis112c9cc2016-03-31 13:35:25 +01002.SH NAME
3PCRE2 - Perl-compatible regular expressions (revised API)
4.SH SYNOPSIS
5.rs
6.sp
7.B #include <pcre2.h>
8.PP
9.nf
10.B void pcre2_match_data_free(pcre2_match_data *\fImatch_data\fP);
11.fi
12.
13.SH DESCRIPTION
14.rs
15.sp
Elliott Hughes653c2102019-01-09 15:41:36 -080016If \fImatch_data\fP is NULL, this function does nothing. Otherwise,
17\fImatch_data\fP must point to a match data block, which this function frees,
18using the memory freeing function from the general context or compiled pattern
19with which it was created, or \fBfree()\fP if that was not set.
Janis Danisevskis112c9cc2016-03-31 13:35:25 +010020.P
Elliott Hughes0c26e192019-08-07 12:24:46 -070021If the PCRE2_COPY_MATCHED_SUBJECT was used for a successful match using this
22match data block, the copy of the subject that was remembered with the block is
23also freed.
24.P
Janis Danisevskis112c9cc2016-03-31 13:35:25 +010025There is a complete description of the PCRE2 native API in the
26.\" HREF
27\fBpcre2api\fP
28.\"
29page and a description of the POSIX API in the
30.\" HREF
31\fBpcre2posix\fP
32.\"
33page.