remove double free from http client