projects
/
platform
/
core
/
system
/
pass.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b09db14
)
resource: process: Fix memory leak issue
66/272566/3
accepted/tizen/unified/20220321.141108
submit/tizen/20220321.051718
author
Chanwoo Choi
<cw00.choi@samsung.com>
Mon, 21 Mar 2022 05:03:21 +0000
(14:03 +0900)
committer
Chanwoo Choi
<cw00.choi@samsung.com>
Mon, 21 Mar 2022 05:14:28 +0000
(14:14 +0900)
Change-Id: I15674f225da17e339493327b6ec870c86ad826a7
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
src/resource/resource-process.c
patch
|
blob
|
history
diff --git
a/src/resource/resource-process.c
b/src/resource/resource-process.c
index
fbfbd6c
..
8baf5dc
100644
(file)
--- a/
src/resource/resource-process.c
+++ b/
src/resource/resource-process.c
@@
-378,7
+378,7
@@
static int query_taskstats(struct taskstats *stats, int cmd_type, pid_t pid)
ret = nla_put_u32(msg, cmd_type, pid);
if (ret < 0)
- goto err_
genl_clos
e;
+ goto err_
msg_fre
e;
ret = nl_send_auto_complete(sock, msg);
nlmsg_free(msg);
@@
-399,6
+399,8
@@
static int query_taskstats(struct taskstats *stats, int cmd_type, pid_t pid)
return 0;
+err_msg_free:
+ nlmsg_free(msg);
err_genl_close:
nl_close(sock);
err_free_sock: