Comment 5 for bug 1770601

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

Reviewed: https://review.opencontrail.org/43024
Committed: http://github.com/Juniper/contrail-common/commit/09f32f489babad3e90742d632f02b4ff9e46b22b
Submitter: Zuul v3 CI (<email address hidden>)
Branch: master

commit 09f32f489babad3e90742d632f02b4ff9e46b22b
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>