projects
/
platform
/
upstream
/
iotivity.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a2a7c3
)
Fixed memory-leak of |cJSON| object on |json2cbor|
author
Kyungsun Cho
<goodsun.cho@samsung.com>
Thu, 18 Aug 2016 07:22:56 +0000
(16:22 +0900)
committer
Randeep Singh
<randeep.s@samsung.com>
Fri, 19 Aug 2016 07:32:20 +0000
(07:32 +0000)
Change-Id: I972cb1386ba55279b8f961e2d6c0a76231cac872
Signed-off-by: Kyungsun Cho <goodsun.cho@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/10593
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
resource/csdk/security/tool/json2cbor.c
patch
|
blob
|
history
diff --git
a/resource/csdk/security/tool/json2cbor.c
b/resource/csdk/security/tool/json2cbor.c
index
947edd3
..
9db78c1
100644
(file)
--- a/
resource/csdk/security/tool/json2cbor.c
+++ b/
resource/csdk/security/tool/json2cbor.c
@@
-881,7
+881,7
@@
OicSecCred_t * JSONToCredBin(const char * jsonStr)
ret = OC_STACK_OK;
exit:
-
+ cJSON_Delete(jsonRoot);
if (OC_STACK_OK != ret)
{
DeleteCredList(headCred);