projects
/
platform
/
core
/
system
/
stability-monitor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6adfb1
)
Fix leaking memory
45/247945/1
author
Konrad Kuchciak
<k.kuchciak@samsung.com>
Wed, 18 Nov 2020 12:42:05 +0000
(13:42 +0100)
committer
Konrad Kuchciak
<k.kuchciak@samsung.com>
Wed, 18 Nov 2020 12:42:37 +0000
(13:42 +0100)
Change-Id: I9549919e11dcc51f8c79f25fd3b527c8128e5130
src/aul.c
patch
|
blob
|
history
diff --git
a/src/aul.c
b/src/aul.c
index
0ca773c
..
353e261
100644
(file)
--- a/
src/aul.c
+++ b/
src/aul.c
@@
-54,7
+54,7
@@
static void app_status_change_handler(GDBusConnection *connection,
ret = process_update_info(process, &aul_app_status);
if (ret)
-
return
;
+
goto cleanup
;
if (process->class != old_class)
_I_PROC(process, "Class changed");
@@
-62,6
+62,12
@@
static void app_status_change_handler(GDBusConnection *connection,
} else {
_W("Received AUL status update for PID %d, but it wasn't found in internal state - ignoring.", pid);
}
+
+cleanup:
+ free(appid);
+ free(pkgid);
+ free(status);
+ free(type);
}
int aul_listener_init(void)