Be sure to free the buffer