gl.FreeFeedbackBuffer(buffer)
Note that this function doesn't detach the buffer from the GL. You need to do this manually, e.g. by changing the render mode using gl.RenderMode().
Please consult an OpenGL reference manual for more information.