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

# XmStringFree(3)

A compound string function that conditionally deallocates memory

## NAME

**XmStringFree** — A compound string function that conditionally deallocates memory

## SYNOPSIS

```
#include <Xm/Xm.h>
void XmStringFree(
XmString string);
```

## DESCRIPTION

**XmStringFree** conditionally recovers memory used by a compound string. Applications should call **XmStringFree** when the application no longer needs *string*.

- *string*

  Specifies the compound string to be freed

## RELATED

[**XmStringCreate**(3)](/XmStringCreate/3.md).
