---
name: "ares_destroy_options"
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_destroy_options"
---

# ares\_destroy\_options(3)

Destroy options initialized with ares\_save\_options

## NAME

ares\_destroy\_options - Destroy options initialized with ares\_save\_options

## SYNOPSIS

```
#include <ares.h>
void ares_destroy_options(struct ares_options *options)
```

## DESCRIPTION

The **[ares\_destroy\_options(3)](/ares_destroy_options/3.md)** function destroys the options struct identified by Ioptions**, freeing all memory allocated by** **[ares\_save\_options(3)](/ares_save_options/3.md).**

## SEE ALSO

[**ares\_save\_options**(3)](/ares_save_options/3.md), [**ares\_init\_options**(3)](/ares_init_options/3.md)
