---
name: "free_pdb"
section: "3"
platform: "linux"
package: "coldsync"
version: "3.0+pre3-3"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/new_pdb"
---

# free\_pdb(3)

create and destroy Palm database structures

Part of [new\_pdb(3)](/new_pdb/3.md).

## NAME

**new\_pdb** **free\_pdb** – create and destroy Palm database structures

## LIBRARY

*libpdb*

## SYNOPSIS

**#include \<pdb.h\>**

*struct* *pdb* *\**\

**new\_pdb**();

*void*\

**free\_pdb**(*struct pdb \*db*);

## DESCRIPTION

**new\_pdb** allocates and initializes a new, empty *struct* *pdb* structure.

**free\_pdb** frees the memory used by a *struct* *pdb* previously returned by **new\_pdb**, as well as any records, resources, AppInfo or sort blocks the database may contain.

## RETURN VALUE

**new\_pdb** returns a pointer to the newly-allocated *struct* *pdb,* or NULL in case of error.

## SEE ALSO

[libpdb(3)](/libpdb/3.md), [pdb\_Read(3)](/pdb_Read/3.md).
