Add free before return at gt_http.c