---
name: "bson_free"
section: "3"
platform: "linux"
package: "libbson-doc"
version: "1.30.4-1+deb13u3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/bson_free"
---

# bson\_free(3)

## SYNOPSIS

```
void
bson_free (void *mem);
```

## PARAMETERS

- •

  **mem**: A memory region.

## DESCRIPTION

This function shall free the memory supplied by **mem**. This should be used by functions that require you free the result with **bson\_free()**.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
