policy: fix: add missing free #2 89/76189/1 submit/tizen/20160623.060952
authorINSUN PYO <insun.pyo@samsung.com>
Thu, 23 Jun 2016 06:05:24 +0000 (15:05 +0900)
committerINSUN PYO <insun.pyo@samsung.com>
Thu, 23 Jun 2016 06:06:34 +0000 (15:06 +0900)
Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: Ibe6c2f780ecf4ea5ff549266b102546dce6d88d6

bus/smack.c

index eb67ee6..5e34d06 100644 (file)
@@ -209,8 +209,10 @@ bus_smack_generate_allowed_list (DBusConnection *connection,
   return allowed_list;
 
 nomem:
-  if (allowed_list != NULL)
+  if (allowed_list != NULL) {
     _dbus_list_clear (allowed_list);
+    dbus_free (allowed_list);
+  }
 
   *nomem_err = TRUE;
   return NULL;