commit 2147207b81ea031bc7c3c6fe21b33a0d27fb6b45
Author: Anda Nicolae <email address hidden>
Date: Wed May 9 15:45:19 2018 +0300
Coverity issues in contrail-controller/cfg_mirror.cc
I have run Coverity on branch R5.0 and it reported the following issues
in contrail-controller/cfg_mirror.cc:
- Variable entry going out of scope leaks the storage it points to in
cfg_mirror.cc:MirrorCfgTable::Add
- Variable entry going out of scope leaks the storage it points to in
cfg_mirror.cc:IntfMirrorCfgTable::Add
Indeed, in both functions listed above, variable entry is not freed on
else branch.
Change-Id: Ia083a3976bd1259e415195ae916a8dd377d50ffc
Closes-Bug: #1770158
Signed-off-by: Anda Nicolae <email address hidden>
Reviewed: https:/ /review. opencontrail. org/43016 github. com/Juniper/ contrail- controller/ commit/ 2147207b81ea031 bc7c3c6fe21b33a 0d27fb6b45
Committed: http://
Submitter: Zuul v3 CI (<email address hidden>)
Branch: master
commit 2147207b81ea031 bc7c3c6fe21b33a 0d27fb6b45
Author: Anda Nicolae <email address hidden>
Date: Wed May 9 15:45:19 2018 +0300
Coverity issues in contrail- controller/ cfg_mirror. cc
I have run Coverity on branch R5.0 and it reported the following issues controller/ cfg_mirror. cc: cc:MirrorCfgTab le::Add cc:IntfMirrorCf gTable: :Add
in contrail-
- Variable entry going out of scope leaks the storage it points to in
cfg_mirror.
- Variable entry going out of scope leaks the storage it points to in
cfg_mirror.
Indeed, in both functions listed above, variable entry is not freed on
else branch.
Change-Id: Ia083a3976bd125 9e415195ae916a8 dd377d50ffc
Closes-Bug: #1770158
Signed-off-by: Anda Nicolae <email address hidden>