[fix] io layer memory management