Skip to content
lorenuars19Public

About

(Wrap-Alloc) A tool to help you find the source of your memory leaks.

Resources

Stars

22 stars

Watchers

2 watching

Forks

Latest commit

 

History

51 Commits

Folders and files

Repository files navigation

THIS TOOL IS NO LONGER MAINTAINED AND USED LOT OF HEAP MEMORY

Use EZmem instead which was rebuilt as an attempt to reach near-zero interference using fd and writing data to files instead of using heap memory https://github.com/lorenuars19/EZmem


curl https://raw.githubusercontent.com/lorenuars19/wraloc/master/wraloc.h -o wraloc.h

W R A L O C

  • Replaces malloc() & free() using macros
  • Count valid malloc() and count non-NULL free() ONLY
  • Use of GCC's __attribute__ to execute code before and after the main()
  • Prints the size of allocation in bytes and location of the call when free() / malloc() is called.

Usage

  1. Get
curl https://raw.githubusercontent.com/lorenuars19/wraloc/master/wraloc.h -o wraloc.h
  1. Include
#include "wraloc.h"

Screenshots

Note

WRALOC is activated by default to disable it compile with -D WRAP=0

About

(Wrap-Alloc) A tool to help you find the source of your memory leaks.

Resources

Stars

22 stars

Watchers

2 watching

Forks

Releases

Contributors

Languages