Return correct stack result on malloc fail in ocstack.c
Return correct stack result on malloc fail in ocstack.c

Assign OC_STACK_NO_MEMORY to result variable when memory allocation
fails before jumping to exit.

Change-Id: I99c8f4ee18d82ef1b6a70c29b4625a06f61f7e4a
Signed-off-by: Mandeep Shetty <9576c34ab780cbbd29c2639a47eb90b07da66bfe@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/460
Tested-by: jenkins-iotivity <09cb29e8a2b473a2c978382eec13ee06fa017bda@opendaylight.org>
Reviewed-by: Erich Keane <ec9f61fe526c14bb62c55d7c978f025ee6b3583d@intel.com>
Reviewed-by: Sashi Penta <32e61e548782370d3f4bdf383408e385d155e3e6@intel.com>
Reviewed-by: Sudarshan Prasad <18992b2df49d20c769d3f89a8cc0a9f38a9dccaa@intel.com>

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