Fixed a number of KW Memory leaks in ocstack.c
Fixed a number of KW Memory leaks in ocstack.c

Klocwork discovered a number of memory leaks.  This fix repairs most
of them.  A few are left behind due to Mandeep's commit in 518,
and Sachin's intent to look into the tok issues.

Change-Id: I92f5902e22dfbaa59e6b7d24985cfa489c93348b
Signed-off-by: Erich Keane <ec9f61fe526c14bb62c55d7c978f025ee6b3583d@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/520
Tested-by: jenkins-iotivity <09cb29e8a2b473a2c978382eec13ee06fa017bda@opendaylight.org>
Reviewed-by: Sachin Agrawal <e527dde4abdf871552470c254efd4939572046d8@intel.com>
Reviewed-by: Sudarshan Prasad <18992b2df49d20c769d3f89a8cc0a9f38a9dccaa@intel.com>

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