Add logic about malloc failed.
Change-Id: I8ac6169f65b00200f9d64fa1572217e53c05435f
Signed-off-by: jaesick.shin <jaesick.shin@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/12873
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
(cherry picked from commit
f114f92cbc6c025fbd92ec99599f79974a43957d)
Reviewed-on: https://gerrit.iotivity.org/gerrit/12981
\r
OCRepPayload** payloadTopicArray = (OCRepPayload **) OICMalloc(\r
sizeof(OCRepPayload *) * dimensionSize);\r
+ NS_VERIFY_NOT_NULL(payloadTopicArray, NS_ERROR);\r
\r
size_t dimensions[3] =\r
{ dimensionSize, 0, 0 };\r