---
name: "ares_free_string"
section: "3"
platform: "linux"
package: "c-ares"
version: "1.34.9-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/ares_free_string"
---

# ares\_free\_string(3)

Free strings allocated by ares functions

## NAME

ares\_free\_string - Free strings allocated by ares functions

## SYNOPSIS

```
#include <ares.h>
void ares_free_string(void *str)
```

## DESCRIPTION

The *[ares\_free\_string(3)](/ares_free_string/3.md)* function frees a string allocated by an ares function.

## SEE ALSO

[**ares\_mkquery**(3)](/ares_mkquery/3.md) [**ares\_expand\_string**(3)](/ares_expand_string/3.md)
