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>