projects
/
apps
/
core
/
preloaded
/
taskmanager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f58af5
)
Fix prevent isseu : memory leacked.
author
hhh.kwon
<hhh.kwon@samsung.com>
Fri, 12 Apr 2013 00:38:49 +0000
(09:38 +0900)
committer
hhh.kwon
<hhh.kwon@samsung.com>
Fri, 12 Apr 2013 00:38:49 +0000
(09:38 +0900)
src/_eina.c
patch
|
blob
|
history
diff --git
a/src/_eina.c
b/src/_eina.c
index
f8f3e24
..
fa50316
100755
(executable)
--- a/
src/_eina.c
+++ b/
src/_eina.c
@@
-187,7
+187,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);