Fix Discovery issue with OCResource
authorHabib Virji <habib.virji@samsung.com>
Mon, 14 Nov 2016 22:13:53 +0000 (22:13 +0000)
committerHabib Virji <habib.virji@samsung.com>
Tue, 15 Nov 2016 10:14:31 +0000 (10:14 +0000)
commita9e5b349d2740477187ed5969dd1b6b7c0313f45
tree1a8af860069dd8ebcde315feb1240fe691e8e585
parentc52137bca74353f5e1128ecb115873ad17c31736
Fix Discovery issue with OCResource

Fix memory allocation and handling response as introduced in the change for issue 1134.

Change-Id: Ieebd1dde50d87e05f9e7ea0cec04af398cabe3ef
Signed-off-by: Habib Virji <habib.virji@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14295
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
resource/csdk/stack/src/ocresource.c