Improve usability of Group Interface API.
authorHyunJun Kim <hyunjun2.kim@samsung.com>
Mon, 9 Feb 2015 08:09:45 +0000 (17:09 +0900)
committerSudarshan Prasad <sudarshan.prasad@intel.com>
Sat, 21 Feb 2015 00:48:32 +0000 (00:48 +0000)
commit140d25b9ecd2f99ad70850c50686a1746cb8a6e1
tree804310e5ebb92644418cd76405c3dbd3faac588a
parentc2ceeebba31694cd69ffeadc40fe12b24ba03f97
Improve usability of Group Interface API.

GetActionSetFromString function has memory leak.
So we fix memory leak and improve usability of the function.

We call two function, ExtractKeyValueFromRequest and BuildActionSetFromString
to extract key and value from requset and get ActionSet object from string.

Fix [IOT-283]

Change-Id: Ie13dcd0afc168632d9a53ad27182d15a55c3aca0
Signed-off-by: HyunJun Kim <hyunjun2.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/308
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
(cherry picked from commit 061a9bc4c0ef896016ea94ebf17c18c55a28e799)
Reviewed-on: https://gerrit.iotivity.org/gerrit/387
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
resource/csdk/stack/include/internal/oicgroup.h
resource/csdk/stack/src/oicgroup.c