Remove SMACK rule file(.rule) according three domain model
[apps/core/preloaded/taskmanager.git] / src / _eina.c
index 08e1083..5831fae 100755 (executable)
@@ -2,7 +2,7 @@
  * org.tizen.taskmgr
  * Copyright (c) 2012 Samsung Electronics Co., Ltd.
  *
- * Licensed under the Flora License, Version 1.0 (the License);
+ * Licensed under the Flora License, Version 1.1 (the License);
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  *
@@ -188,7 +188,13 @@ int taskmanager_get_history_app_info(void *data)
 
                if (flag == 0) {
                        info = calloc(1, sizeof(struct _task_info));
-                       retvm_if(info == NULL, -1, "Failed to calloc _task_info\n");
+                       if(info == NULL) {
+                               _E("Failed to calloc _task_info\n");
+                               if(handle) {
+                                       ret = ail_package_destroy_appinfo(handle);
+                               }
+                               return -1;
+                       }
 
                        info->pkg_name = strdup(rec_result.pkg_name);