Release correct buffer