agl-compositor:Add NULL check after zalloc in src directory 01/27001/6 12.91.0 marlin/12.91.0 marlin_12.91.0
authorAndyZhou <zhoumy@cn.fujitsu.com>
Wed, 22 Dec 2021 08:00:59 +0000 (16:00 +0800)
committerAndyZhou <zhoumy@cn.fujitsu.com>
Wed, 22 Dec 2021 08:00:59 +0000 (16:00 +0800)
commit471a12ee38098aaac86e5a9a8e256fd88cd67c0a
tree68c4d3cef11dc27c0f990e9b07016b9d0b8132fa
parent18918978ba5c0f91f05513170c8ca57a93e96722
agl-compositor:Add NULL check after zalloc in src directory

There's no NULL check in zalloc.
Add a NULL check after zalloc.
And add memory free before return error.

Bug-AGL: SPEC-4178

Signed-off-by: ZhouMingying <zhoumy@cn.fujitsu.com>
Change-Id: Ic0e0e2007b2897a451507aed100ad01b65695383
src/compositor.c
src/policy.c
src/shell.c