---
name: "bson_context_destroy"
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_context_destroy"
---

# bson\_context\_destroy(3)

## SYNOPSIS

```
void
bson_context_destroy (bson_context_t *context);
```

## PARAMETERS

- •

  **context**: A *bson\_context\_t*.

## DESCRIPTION

The **bson\_context\_destroy()** function shall release all resources associated with **context**. Does nothing if **context** is NULL.

This should be called when you are no longer using a *bson\_context\_t* that you have allocated with *bson\_context\_new()*.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
