Fix potential memory leak 78/25978/1
authorLi Xiaoming <lixm.fnst@cn.fujitsu.com>
Mon, 1 Feb 2021 03:44:05 +0000 (11:44 +0800)
committerLi Xiaoming <lixm.fnst@cn.fujitsu.com>
Mon, 1 Feb 2021 03:44:05 +0000 (11:44 +0800)
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>

No differences found