---
name: "pcre2_maketables_free"
section: "3"
platform: "linux"
package: "pcre2"
version: "10.49-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/pcre2_maketables_free"
---

# pcre2\_maketables\_free(3)

Perl-compatible regular expressions (revised API)

## NAME

PCRE2 - Perl-compatible regular expressions (revised API)

## SYNOPSIS

**#include \<pcre2.h\>**

```
void pcre2_maketables_free(pcre2_general_context *gcontext,
  const uint8_t *tables);
```

## DESCRIPTION

This function discards a set of character tables that were created by a call to **pcre2\_maketables()**.

The *gcontext* parameter should match what was used in that call to account for any custom allocators that might be in use; if it is NULL the system **free()** is used.

There is a complete description of the PCRE2 native API in the **pcre2api** page.
