* 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
*
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);