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:
97927b7
)
Add OICFree() to release the memory already allocate for the uri
author
Jay Oh
<junghyun.oh@samsung.com>
Thu, 14 Jan 2016 07:07:45 +0000
(16:07 +0900)
committer
Jon A. Cruz
<jonc@osg.samsung.com>
Fri, 15 Jan 2016 19:21:31 +0000
(19:21 +0000)
Change-Id: I14590e2f5427c5aef80eefce0b264eb6b4344328
Signed-off-by: Jay <junghyun.oh@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/3935
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ossama Othman <ossama.othman@intel.com>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
resource/csdk/stack/src/ocpayload.c
patch
|
blob
|
history
diff --git
a/resource/csdk/stack/src/ocpayload.c
b/resource/csdk/stack/src/ocpayload.c
index f8e542977e499bf780d9741e59a88f9ddbfbef9c..d6879e234a81f7665aa1e0f174ef3f5677e32296 100755
(executable)
--- a/
resource/csdk/stack/src/ocpayload.c
+++ b/
resource/csdk/stack/src/ocpayload.c
@@
-447,7
+447,7
@@
bool OCRepPayloadSetUri(OCRepPayload* payload, const char* uri)
{
return false;
}
-
+ OICFree(payload->uri);
payload->uri = OICStrdup(uri);
return payload->uri != NULL;
}