---
name: "tdb_close"
section: "3"
platform: "linux"
package: "libtdb-dev"
version: "2:1.4.13+samba4.22.11+dfsg-0+deb13u1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/tdb_close"
---

# tdb\_close(3)

close a tdb database

## NAME

tdb\_close - close a tdb database

## SYNOPSIS

```
#include <tdb.h>

int tdb_close(TDB_CONTEXT *tdb);

```

## DESCRIPTION

Closes a TDB database and frees memory any memory that was used.

## RETURN VALUE

Returns zero on success and -1 on failure.

## AUTHORS

Software: Andrew Tridgell and Luke Kenneth Casson Leighton Man page: Ben Woodard \<ben@valinux.com\>

## SEE ALSO

[**gdbm**(3)](/gdbm/3.md), **[tdb(3)](/tdb/3.md)**
