---
name: "SPI_pfree"
section: "3"
platform: "linux"
package: "postgresql"
version: "18.6-4"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/SPI_pfree"
---

# SPI\_pfree(3)

free memory in the upper executor context

## NAME

SPI\_pfree - free memory in the upper executor context

## SYNOPSIS

```
void SPI_pfree(void * pointer)
```

## DESCRIPTION

**SPI\_pfree** frees memory previously allocated using **SPI\_palloc** or **SPI\_repalloc**.

This function is no longer different from plain **pfree**. It's kept just for backward compatibility of existing code.

## ARGUMENTS

void \* *pointer*

pointer to existing storage to free
