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>
// This is the owner of the payload object, so we free it
OCPayloadDestroy(payload);
+ OICFree(requestInfo.info.payload);
OICFree(devAddr);
OICFree(resourceUri);
OICFree(resourceType);