Did you consider to use xcalloc to reimplement lalloc_clear?

Good catch @oni-link!