Add in ringbuffer the free() method