Add interfaces for freeing an unused buffer