Fix klocwork issues

BZ: 77254

Check the return value of calloc. Fix NULL pointer dereference risk.
Signed-off-by: Elaine Wang <[email protected]>

Change-Id: Ie877bf092e366f59ffa05f39f0d51d5c5d0c2199
Reviewed-on: http://android.intel.com:8080/83994
Reviewed-by: Wang, Elaine <[email protected]>
Reviewed-by: Yuan, Shengquan <[email protected]>
Reviewed-by: Shi, PingX <[email protected]>
Tested-by: Shi, PingX <[email protected]>
Reviewed-by: cactus <[email protected]>
Tested-by: cactus <[email protected]>
2 files changed