Fix double free or corruption
Fix double free or corruption

Change-Id: I8fc6acf872d758d1a7a9b3157b83555d9d1fbec6
Signed-off-by: Sakthivel Samidurai <2b42ef6ad9ddc9eb44e2c60668b448d90a7d2d41@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2092
Tested-by: jenkins-iotivity <09cb29e8a2b473a2c978382eec13ee06fa017bda@opendaylight.org>
Reviewed-by: Erich Keane <ec9f61fe526c14bb62c55d7c978f025ee6b3583d@intel.com>

santais/iotivity,rzr/iotivity,iotivity/iotivity,WojciechLuczkow/iotivity,iotivity/iotivity,santais/iotivity,santais/iotivity_1.1,tienfuc/iotivity-democlient-snap,santais/iotivity,santais/iotivity_1.1,WojciechLuczkow/iotivity,iotivity/iotivity,tienfuc/iotivity-democlient-snap,santais/iotivity,rzr/iotivity,iotivity/iotivity,iotivity/iotivity,tienfuc/iotivity-democlient-snap,santais/iotivity_1.1,iotivity/iotivity,tienfuc/iotivity-democlient-snap,tienfuc/iotivity-democlient-snap,santais/iotivity_1.1,WojciechLuczkow/iotivity,tienfuc/iotivity-democlient-snap,iotivity/iotivity,santais/iotivity_1.1.0,WojciechLuczkow/iotivity,rzr/iotivity,rzr/iotivity,santais/iotivity,santais/iotivity,WojciechLuczkow/iotivity,rzr/iotivity,santais/iotivity_1.1,santais/iotivity_1.1.0,tienfuc/iotivity-democlient-snap,WojciechLuczkow/iotivity,santais/iotivity_1.1.0,santais/iotivity,santais/iotivity_1.1,tienfuc/iotivity-democlient-snap,santais/iotivity_1.1.0,tienfuc/iotivity-democlient-snap,WojciechLuczkow/iotivity,rzr/iotivity,rzr/iotivity,santais/iotivity_1.1.0,iotivity/iotivity,santais/iotivity_1.1,tienfuc/iotivity-democlient-snap,santais/iotivity_1.1.0,santais/iotivity_1.1,santais/iotivity_1.1.0,WojciechLuczkow/iotivity