projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8170f9
)
coredump: do not leak memory (#8352)
author
Yu Watanabe
<watanabe.yu+github@gmail.com>
Mon, 5 Mar 2018 07:39:52 +0000
(16:39 +0900)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Mon, 5 Mar 2018 07:39:52 +0000
(08:39 +0100)
Fixes #8351.
src/coredump/coredumpctl.c
patch
|
blob
|
history
diff --git
a/src/coredump/coredumpctl.c
b/src/coredump/coredumpctl.c
index
6b697c3
..
a4cc9c1
100644
(file)
--- a/
src/coredump/coredumpctl.c
+++ b/
src/coredump/coredumpctl.c
@@
-94,10
+94,7
@@
static int add_match(sd_journal *j, const char *match) {
else
prefix = "COREDUMP_COMM=";
- pattern = strjoin(prefix, match);
- if (!pattern)
- return log_oom();
-
+ pattern = strjoina(prefix, match);
log_debug("Adding match: %s", pattern);
r = sd_journal_add_match(j, pattern, 0);
if (r < 0)