Fix memory leaks in handling server requests.
authorMandeep Shetty <mandeep.shetty@intel.com>
Tue, 19 May 2015 17:35:46 +0000 (10:35 -0700)
committerErich Keane <erich.keane@intel.com>
Tue, 19 May 2015 21:49:11 +0000 (21:49 +0000)
commit5671e8791332f79cd1ceaa9b081581deae242a54
treeed5345fcea169eb99950bf41ee32ed5ba75f4a1b
parent9cfd314b9feec4f8074bd4bc745c1c552f7785a7
Fix memory leaks in handling server requests.

Two memory leaks fixed. One after a response is sent and one when a
server request is deleted. malloc'ed tokens were not free'd in both
instances.

Change-Id: I125bab278dd8542ff5970e6655b24a5cbacfe7e9
Signed-off-by: Mandeep Shetty <mandeep.shetty@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1040
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sakthivel Samidurai <sakthivel.samidurai@intel.com>
Reviewed-by: Erich Keane <erich.keane@intel.com>
resource/csdk/stack/src/ocserverrequest.c