Fix memory leak on OCDoResource
authorErich Keane <erich.keane@intel.com>
Wed, 22 Jul 2015 18:31:42 +0000 (11:31 -0700)
committerErich Keane <erich.keane@intel.com>
Thu, 23 Jul 2015 18:15:08 +0000 (18:15 +0000)
commit68bca9d3d36873c4b08f69dc75d24cc9cdbfe7da
treed560177423d529e2b9562d09ed4bdae207e35421
parent61fe78ffa5d9627c290077b3143ee3ee71f76048
Fix memory leak on OCDoResource

OCDoResource was leaking the generated payload each time, so
this fixes the issue by ensuring it is free'd at the end.

Change-Id: I693318bdcb6d7baa37a5397fab33b0fe4c784960
Signed-off-by: Erich Keane <erich.keane@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1821
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
resource/csdk/stack/src/ocstack.c