Skip to content

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

License

Notifications You must be signed in to change notification settings

lorenuars19/wraloc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Languages