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

# SPI\_freetuple(3)

free a row allocated in the upper executor context

## NAME

SPI\_freetuple - free a row allocated in the upper executor context

## SYNOPSIS

```
void SPI_freetuple(HeapTuple row)
```

## DESCRIPTION

**SPI\_freetuple** frees a row previously allocated in the upper executor context.

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

## ARGUMENTS

HeapTuple *row*

row to free
