diff options
author | Hongkuk, Son <hongkuk.son@samsung.com> | 2017-08-01 17:11:00 +0900 |
---|---|---|
committer | Hongkuk, Son <hongkuk.son@samsung.com> | 2017-08-01 17:13:31 +0900 |
commit | 7667ee80ac765b2a97edac3fcee4c12df2620ddf (patch) | |
tree | 37517627352fcca7f639567806095c149e9bb851 | |
parent | 436f285aecd46546c0ab6fc37458025c784b1e75 (diff) | |
download | iotcon-7667ee80ac765b2a97edac3fcee4c12df2620ddf.tar.gz iotcon-7667ee80ac765b2a97edac3fcee4c12df2620ddf.tar.bz2 iotcon-7667ee80ac765b2a97edac3fcee4c12df2620ddf.zip |
Fix SVACE issuetizen_4.0.IoT.p1_releasesubmit/tizen_4.0/20170828.110004submit/tizen_4.0/20170828.100004submit/tizen/20170807.074858accepted/tizen/unified/20170808.171143accepted/tizen/4.0/unified/20170829.015900
- 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.c | 9 |
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; |