Are you sure? I didn't catch that when chasing down `malloc` errors, but I must admit the high-level strategy for memory management in the present code still eludes me.