Apache HTTPD
Classes | Typedefs | Functions | Variables
memcheck.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include "memcheck.h"

Go to the source code of this file.

Classes

struct  allocation_entry
 

Typedefs

typedef struct allocation_entry AllocationEntry
 

Functions

static AllocationEntryfind_allocation (const void *ptr)
 
void * tracking_malloc (size_t size)
 
void tracking_free (void *ptr)
 
void * tracking_realloc (void *ptr, size_t size)
 
int tracking_report (void)
 

Variables

static AllocationEntryalloc_head = NULL
 
static AllocationEntryalloc_tail = NULL
 

Typedef Documentation

◆ AllocationEntry

Function Documentation

◆ find_allocation()

static AllocationEntry * find_allocation ( const void *  ptr)
static

Definition at line 87 of file memcheck.c.

◆ tracking_free()

void tracking_free ( void *  ptr)

Definition at line 100 of file memcheck.c.

◆ tracking_malloc()

void * tracking_malloc ( size_t  size)

Definition at line 57 of file memcheck.c.

◆ tracking_realloc()

void * tracking_realloc ( void *  ptr,
size_t  size 
)

Definition at line 128 of file memcheck.c.

◆ tracking_report()

int tracking_report ( void  )

Definition at line 179 of file memcheck.c.

Variable Documentation

◆ alloc_head

AllocationEntry* alloc_head = NULL
static

Definition at line 50 of file memcheck.c.

◆ alloc_tail

AllocationEntry* alloc_tail = NULL
static

Definition at line 51 of file memcheck.c.