blob: 9e0ad3c08de9735ca0a61e24452f3ad08c8e6ad3 [file] [log] [blame]
Elliott Hughes653c2102019-01-09 15:41:36 -08001.TH PCRE2_CODE_FREE 3 "28 June 2018" "PCRE2 10.32"
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_code_free(pcre2_code *\fIcode\fP);
11.fi
12.
13.SH DESCRIPTION
14.rs
15.sp
Elliott Hughes653c2102019-01-09 15:41:36 -080016If \fIcode\fP is NULL, this function does nothing. Otherwise, \fIcode\fP must
17point to a compiled pattern. This function frees its memory, including any
Elliott Hughes9bc971b2018-07-27 13:23:14 -070018memory used by the JIT compiler. If the compiled pattern was created by a call
19to \fBpcre2_code_copy_with_tables()\fP, the memory for the character tables is
20also freed.
Janis Danisevskis112c9cc2016-03-31 13:35:25 +010021.P
22There is a complete description of the PCRE2 native API in the
23.\" HREF
24\fBpcre2api\fP
25.\"
26page and a description of the POSIX API in the
27.\" HREF
28\fBpcre2posix\fP
29.\"
30page.