---
name: "lbFree"
section: "3"
platform: "linux"
package: "libleakbug-dev"
version: "0.1.5+debian-2"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/lbFree"
---

# lbFree(3)

Frees memory.

## NAME

lbFree - Frees memory.

## SYNOPSIS

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

**void lbFree(void \*ptr, const char \*filename, int line, int debug\_level);**

## PARAMETERS

- **ptr**

  The pointer to free.

- **filename**

  The calling filename.

- **line**

  The calling line number.

- **debug\_level**

  The debug level.

## DESCRIPTION

Frees memory. This wraps free(), and a new free() macro is created to wrap this. When using leakbug, you shouldn't call this directly. Instead, use free() as usual.

## RETURNS

Nothing.

## SEE ALSO

[free(3)](/free/3.md)
