This resolves the failures from freeing bzf->buf too soon.