Fix memory leak in lwp_heapbuffer_addf