]> jfr.im git - irc/quakenet/newserv.git/commit - core/nsmalloc.h
Added "nsmalloc" to the core.
authorsplidge <redacted>
Fri, 1 Jun 2007 23:54:55 +0000 (00:54 +0100)
committersplidge <redacted>
Fri, 1 Jun 2007 23:54:55 +0000 (00:54 +0100)
commit34da4416e8e4a0d7c20acc39b524b679bb7e42d2
tree300efd456cc6b487020089ff2103159cd2e0bfc6
parentf3a0d096ad517bd12fa0bddc96339db7d34ce4eb
Added "nsmalloc" to the core.

This is a simple malloc() wrapper which supports "pools".  It is possible to
free all allocations belonging to a given pool at the same time - perfect
for stopping modules from leaking memory.

If you want to use this in your module, add a #define to nsmalloc.h to grab
a number.
core/nsmalloc.c [new file with mode: 0644]
core/nsmalloc.h [new file with mode: 0644]