]> git.imager.perl.org - imager.git/commit
[rt #70388] debug mymalloc() no longer builds a string, just stores the pointer
authorTony Cook <tony@develop-help.com>
Sat, 10 Mar 2012 03:13:26 +0000 (14:13 +1100)
committerTony Cook <tony@develop-help.com>
Sat, 10 Mar 2012 03:13:26 +0000 (14:13 +1100)
commit335078fc1032a3f10dfc337e18f61f6ae89a5243
treebab43e9f02eacdadcb34596e58ce1e8a2474aea9
parenta5919365e50016707e6a5ef3eeed0d9339a68e69
[rt #70388] debug mymalloc() no longer builds a string, just stores the pointer

The debug malloc() code would use snprintf() (or even worse,
sprintf()) to build a string to track when the memory allocation was
performed for later tracking.

Now we just store the pointers, which should come from __FILE__ and
hence be static.
Changes
io.c