Fixed memory handling of HandleSingleResponse
authorErich Keane <erich.keane@intel.com>
Tue, 24 Mar 2015 21:16:13 +0000 (14:16 -0700)
committerErich Keane <erich.keane@intel.com>
Thu, 26 Mar 2015 18:06:02 +0000 (18:06 +0000)
commit8939bac9ef01afbcb8ffcd60373095e60064ef9c
treee61124b7f279850e91b153ca3463ca460c69cba3
parenteabea025011c6de2c4543db3fd25f01892736d8f
Fixed memory handling of HandleSingleResponse

As identified in the RI code review, the options and token
were leaked and had some interesting behavior if the options count
was zero.  This patch corrects those, and repairs some return
values that were inconsistent and detected while chaising the
memory around.

Change-Id: Ica590fefc8702faa7108cc00642cbc2424f402ac
Signed-off-by: Erich Keane <erich.keane@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/564
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Joseph Morrow <joseph.l.morrow@intel.com>
resource/csdk/stack/src/ocserverrequest.c