Fix segfault on presence payload destroy.
authorMandeep Shetty <mandeep.shetty@intel.com>
Mon, 3 Aug 2015 17:27:46 +0000 (10:27 -0700)
committerErich Keane <erich.keane@intel.com>
Mon, 3 Aug 2015 20:33:03 +0000 (20:33 +0000)
commit1618d80ec30047e95500a0d5a46ed2b809ee648f
tree513665eb08fd57ea330fae9cedd9ddd1127e4736
parentf9d7b50d29fe93291df370486bd19a148638bf23
Fix segfault on presence payload destroy.

Two pointers pointd to the same memory location and both pointers were
free'd. One was free'd explicitly and the other was free'd as part of
freeing a struct in OCPresencePayloadDestroy.

Change-Id: Ieb3517ffeb4ab0abc4e6e7ff2b6b3b44a82264bf
Signed-off-by: Mandeep Shetty <mandeep.shetty@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2086
Reviewed-by: Omkar Hegde <omkar.m.hegde@intel.com>
Reviewed-by: Erich Keane <erich.keane@intel.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
resource/csdk/stack/src/ocstack.c