Comment 6 for bug 1770601

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/42976
Committed: http://github.com/Juniper/contrail-common/commit/aa665df4199e4f3486357d3a5db5b6eefd375098
Submitter: Zuul v3 CI (<email address hidden>)
Branch: R5.0

commit aa665df4199e4f3486357d3a5db5b6eefd375098
Author: Anda Nicolae <email address hidden>
Date: Fri May 11 12:32:21 2018 +0300

Coverity reports memory leak in contrail-common/http_curl.cc

I have run Coverity on branch R5.0 and it reported the following
memory leak in contrail-common/http_curl.cc:

- leaked_storage: Variable conn going out of scope leaks the storage
it points to in http_curl.cc:new_conn()
Indeed, conn should be freed if the following condition is matched:
if ( !conn->easy ) {

Change-Id: Idf4985d7806897c0f8eb7e725e19259a4adfa809
Closes-Bug: #1770601
Signed-off-by: Anda Nicolae <email address hidden>