http2: free resources on disconnect

... and use Curl_safefree() instead of free()