---
name: "bson_mem_restore_vtable"
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_mem_restore_vtable"
---

# bson\_mem\_restore\_vtable(3)

## SYNOPSIS

```
void
bson_mem_restore_vtable (void);
```

## DESCRIPTION

This function shall restore the default memory allocator to be used by Libbson.

**WARNING:**

This function *MUST* be called at the end of the process. Failure to do so will result in memory being freed by the wrong allocator.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
