Free CURL buffer correctly.