---
name: "ares_free_errmem"
section: "3"
platform: "linux"
package: "libares-dev"
version: "1.1.1-5.1"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/ares_free_errmem"
---

# ares\_free\_errmem(3)

Free memory allocated by ares\_strerror

## NAME

ares\_free\_errmem - Free memory allocated by ares\_strerror

## SYNOPSIS

```
#include <ares.h>
```

**void ares\_free\_errmem(char \**errmem*)**

## DESCRIPTION

The **ares\_free\_errmem** function frees any memory which might have been allocated by the [**ares\_strerror**(3)](/ares_strerror/3.md) function.  The parameter *errmem* should be set to the variable pointed to by the *memptr* argument previously passed to *ares\_strerror*.

## SEE ALSO

[**ares\_strerror**(3)](/ares_strerror/3.md)

## AUTHOR

Greg Hudson, MIT Information Systems\
 Copyright 1998 by the Massachusetts Institute of Technology.
