Fix memory leak in oicgroup file of cstack.
authorJamal Haidar <jamal.haidar@samsung.com>
Sat, 4 Jul 2015 09:47:12 +0000 (15:17 +0530)
committerUze Choi <uzchoi@samsung.com>
Mon, 6 Jul 2015 02:44:03 +0000 (02:44 +0000)
ClientRequestInfo *info memory leaked in case of SendAction() method
failure called in DoAction().

Change-Id: I81de9f0765cd9fdd3387ff98f6975df146dbbc2a
Signed-off-by: Jamal Haidar <jamal.haidar@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1521
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Erich Keane <erich.keane@intel.com>
Reviewed-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
resource/csdk/stack/src/oicgroup.c

index 36b2733..b8ba4b8 100644 (file)
@@ -942,6 +942,7 @@ OCStackResult DoAction(OCResource* resource, OCActionSet* actionset,
                 actionDescPtr);
         if (result != OC_STACK_OK)
         {
+            OICFree(info);
             return result;
         }