summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHongkuk, Son <hongkuk.son@samsung.com>2017-08-01 17:11:00 +0900
committerHongkuk, Son <hongkuk.son@samsung.com>2017-08-01 17:13:31 +0900
commit7667ee80ac765b2a97edac3fcee4c12df2620ddf (patch)
tree37517627352fcca7f639567806095c149e9bb851
parent436f285aecd46546c0ab6fc37458025c784b1e75 (diff)
downloadiotcon-7667ee80ac765b2a97edac3fcee4c12df2620ddf.tar.gz
iotcon-7667ee80ac765b2a97edac3fcee4c12df2620ddf.tar.bz2
iotcon-7667ee80ac765b2a97edac3fcee4c12df2620ddf.zip
- WGID 260267 : DEREF_OF_NULL.RET.ALLOC Signed-off-by: Hongkuk, Son <hongkuk.son@samsung.com> Change-Id: I9d8ed3f426f3552fd1c85bf49c934bc9d08dfa0f
-rw-r--r--src/ic-ioty-ocprocess.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ic-ioty-ocprocess.c b/src/ic-ioty-ocprocess.c
index 2b30f53..47be083 100644
--- a/src/ic-ioty-ocprocess.c
+++ b/src/ic-ioty-ocprocess.c
@@ -761,6 +761,15 @@ OCEntityHandlerResult icl_ioty_ocprocess_request_cb(OCEntityHandlerFlag flag,
icl_request_container_s *req_container = calloc(1, sizeof(icl_request_container_s));
if (NULL == req_container) {
ERR("calloc() Fail(%d)", errno);
+ free(host_address);
+ if (options)
+ icl_options_destroy(options);
+ if (query)
+ icl_query_destroy(query);
+ if (repr)
+ icl_representation_destroy(repr);
+ if (req)
+ free(req);
return OC_EH_ERROR;
}
req_container->request = req;