Quoth cinap_lenrek@felloff.net: > nice, looks good to me on first glance. > > note, we should probably add a setmalloctag(p, getcallerpc(&n)); > inside emallc() to make your leak hunt easier. Thanks for the feedback! I have amended the patch (see attachement) and use setmalloctag() and seteralloctag() to improve hunting for leaks as you suggest. Also fixed a few typos in the slightly long commit messageā€¦ Will do some more testing tonight and commit tomorrow if all works out fine.