Fix defects detected by static code analyzer
authorJihun Ha <jihun.ha@samsung.com>
Thu, 23 Mar 2017 01:39:24 +0000 (10:39 +0900)
committerUze Choi <uzchoi@samsung.com>
Sat, 25 Mar 2017 05:00:47 +0000 (05:00 +0000)
commit37c12858cb008e099cf2716c98c10458db26f4fa
tree18b86148c7ec3436db4e6a58535f3fcd2829255d
parentc5b456bc1dcb5f85bed80422e31af6a92b8fe135
Fix defects detected by static code analyzer

Checking if a OICMalloc is failed is added.
Calling OICFree to prevent a memory leak is added.

Follow coding convention padding after condition "if ("

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