---
name: "lbRealloc"
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/lbRealloc"
---

# lbRealloc(3)

Reallocates memory.

## NAME

lbRealloc - Reallocates memory.

## SYNOPSIS

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

**void \*lbRealloc(void \*data, size\_t size, const char \*filename, int line, int debug\_level);**

## PARAMETERS

- **data**

  The data to reallocate.

- **size**

  The new size of the data.

- **filename**

  The calling filename.

- **line**

  The calling line number.

- **debug\_level**

  The debug level.

## DESCRIPTION

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

## RETURNS

A pointer to the start of **data.**

## SEE ALSO

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