Skip to content

Commit

Permalink
Merge "Fix valgrind reported issue in HTTP client" into R2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Jun 23, 2015
2 parents 7046092 + f029079 commit f3c06fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 4 additions & 0 deletions src/http/client/http_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,10 @@ void HttpConnection::HttpProcessInternal(const std::string body, std::string pat
return;
}

if (curl_handle_) {
// delete existing curl_handle
del_curl_handle(curl_handle_, gi);
}
curl_handle->connection = this;
set_curl_handle(curl_handle);

Expand Down
3 changes: 0 additions & 3 deletions src/http/client/http_curl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,6 @@ static void check_multi_info(GlobalInfo *g)
std::string empty_str("");
if (conn->connection->HttpClientCb() != NULL)
conn->connection->HttpClientCb()(empty_str, error);

conn->connection->set_curl_handle(NULL);
del_curl_handle(conn, g);
}
}
}
Expand Down

0 comments on commit f3c06fe

Please sign in to comment.