The code for this is so simple it would be hard to screw up. Plus you can just use obstacks[1] which pretty much provide the interface I was describing.<p>Look, I&#x27;m totally willing to accept that there might be flaws with this approach, but with the exception of adrusi, no one&#x27;s objections have been all that reasonable. If there are legitimate objections (not just handwavy, oh, you&#x27;ll probably implement the allocator wrong) I&#x27;d love to hear them. I use this pattern in my own code and I&#x27;ll stop if there are legitimate flaws.<p>Also, Akamai released a patch for the OpenSSL allocator bug mentioned earlier. Guess what the patch used: mmaped regions.[2]<p>[1]: <a href="http:&#x2F;&#x2F;www.gnu.org&#x2F;software&#x2F;libc&#x2F;manual&#x2F;html_node&#x2F;Obstacks.html" rel="nofollow">http:&#x2F;&#x2F;www.gnu.org&#x2F;software&#x2F;libc&#x2F;manual&#x2F;html_node&#x2F;Obstacks.h...</a><p>[2]: <a href="http:&#x2F;&#x2F;thread.gmane.org&#x2F;gmane.comp.encryption.openssl.user&#x2F;51243" rel="nofollow">http:&#x2F;&#x2F;thread.gmane.org&#x2F;gmane.comp.encryption.openssl.user&#x2F;5...</a>