---
name: "libmawk_cell_destroy"
section: "3libmawk"
platform: "linux"
package: "libmawk1t64"
version: "1.0.4-4"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/libmawk_cell_destroy"
---

# libmawk\_cell\_destroy(3libmawk)

free all memory associated with a cell

## NAME

libmawk\_cell\_destroy - free all memory associated with a cell

## SYNOPSIS

```
#include <libmawk.h>

void libmawk_cell_destroy(mawk_state_t *m, CELL *c);
```

## DESCRIPTION

The **libmawk\_cell\_destroy**() function frees all memory allocated to store a mawk cell. It is useful with some of the libmawk calls that return a newly allocated cell, such as the libmawk\_call\_function() call.

Argument m is a libmawk context previously returned by libmawk\_initialize() or libmawk\_initialize\_stage3().

## SEE ALSO

**libmawk\_initialize\_stage**(3libmawk), **libmawk\_initialize**(3libmawk), **libmawk\_call\_function**(3libmawk).
