Fix for Jira issues IOT-733,739 and 727
Fixed double free corruptions and errors in freeing static memory
If accepted, this changeset should be cherrypicked to 1.0.0-dev.
Change-Id: I5b37f5090b68b45156b5965f715b68daebfe9e37
Signed-off-by: koushik.girijala <g.koushik@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/3191
Reviewed-by: Gabriel Schulhof <gabriel.schulhof@intel.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
(cherry picked from commit
6c022b836ecb8331f719700ac405d57751f19db4)
Reviewed-on: https://gerrit.iotivity.org/gerrit/3227