Fix defect that is detected by static analysis tool 55/281755/3
authorwn.jang <wn.jang@samsung.com>
Wed, 21 Sep 2022 10:36:35 +0000 (19:36 +0900)
committerwn.jang <wn.jang@samsung.com>
Wed, 21 Sep 2022 10:41:24 +0000 (19:41 +0900)
commit48a6e38268ef51662c51545e6d391887d8000628
tree6ca63097d301c9e5a8596d48d1ce12302108a66b
parente714e807f414ec7a8e9f31d686e366027f0e89dd
Fix defect that is detected by static analysis tool

Cause: When calloc returns NULL, dereferencing a pointer might be nullptr data.

Solution: Check whether calloc is succeeded or not.

Change-Id: I72aa53d041d9cd5d358907f6d2f7ebcb140ab601
tests/src/tts_unittests.cpp