- WGID 260267 : DEREF_OF_NULL.RET.ALLOC
Signed-off-by: Hongkuk, Son <hongkuk.son@samsung.com>
Change-Id: I9d8ed3f426f3552fd1c85bf49c934bc9d08dfa0f
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;