Fix a defect detected by static code analyzer 01/17601/7
authorJihun Ha <jihun.ha@samsung.com>
Wed, 8 Mar 2017 13:33:41 +0000 (22:33 +0900)
committerUze Choi <uzchoi@samsung.com>
Thu, 9 Mar 2017 14:15:52 +0000 (14:15 +0000)
commitf0c792a3c34467e7719849d2e6b39d8c03bb1313
treef399f0f0c048bd6805bff5c2bebdffa909f6eab8
parent94bef05f80290f8fecf18cbcb75ac76f6d25e766
Fix a defect detected by static code analyzer

A logic to check a failure of malloc is added.

Change-Id: I1414673e0745fa11c4358e39ea6fedc9e26277ad
Signed-off-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/17601
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
service/easy-setup/enrollee/src/resourcehandler.c