]> git.refcnt.org Git - colorize.git/commit
Wrap memory allocation functions
authorSteven Schubiger <stsc@refcnt.org>
Thu, 24 Jan 2013 22:59:34 +0000 (23:59 +0100)
committerSteven Schubiger <stsc@refcnt.org>
Thu, 24 Jan 2013 22:59:34 +0000 (23:59 +0100)
commitca8ab7e39af7b3b6d263329bb605925f693d23b8
treed1cbb346ddd23ec44215573ebf44656b78f4b3cf
parenteaa100485541ae65959f78f6ae27e8c5cc1c644d
Wrap memory allocation functions

This covers currently calls to malloc(), realloc() and the custom
strdup() (which uses malloc, too).  If allocation of memory fails
(i.e., NULL is returned from one of former two calls), a fatal
diagnostic is emitted (accompanied by source filename and line
number if compiled with DEBUG=1).
colorize.c