lbMalloc(3)

lbMalloc3

Allocates memory.

Usage

#include <leakbug.h>

void *lbMalloc(size_t size, const char *filename, int line, int debug_level);

Parameters

size

The size of the memory to allocate.

filename

The calling filename.

line

The calling line number.

debug_level

The debug level.

Overview

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

Returns

A pointer to the new chunk of memory.

Releases

3 releases since Debian 3.0 (Woody); the text changed 1 time.

  1. 3.0
  2. 3.1–4.0

From libleakbug-dev 0.1.5+debian-2 in Debian 4.0 (Etch). Parsed by carta from the page's man source.