Fix potential memory leak 57/26057/1 11.0.0 koi/11.0.0 koi_11.0.0
authorLi Xiaoming <lixm.fnst@cn.fujitsu.com>
Mon, 1 Feb 2021 03:44:05 +0000 (11:44 +0800)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Mon, 8 Feb 2021 18:34:45 +0000 (18:34 +0000)
commit3d3afa16bc3f4e8d15c57cd380b4c0e2fc3c3557
tree051e496c8c95a972dc926c99bf2b445fdd39aad9
parentd63beea6a15c67936791739436f8b9c2de8387b2
Fix potential memory leak

json structure allocating code should be placed in where it is used, if
there is a condition check which may cause a return before the
before-mentioned place in the function.

Bug-AGL: SPEC-3584

Change-Id: I5f88c7ce0b9257b2782144548f11a0e1d7ab388a
Signed-off-by: Li Xiaoming <lixm.fnst@cn.fujitsu.com>
src/hs-client.cpp
src/hs-proxy.cpp