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:
1e0c5fc
)
journald: free the allocated memory before returning from dev_kmsg_record
author
Evgeny Vereshchagin
<evvers@ya.ru>
Fri, 10 Aug 2018 12:52:07 +0000
(12:52 +0000)
committer
Evgeny Vereshchagin
<evvers@ya.ru>
Fri, 10 Aug 2018 13:35:06 +0000
(13:35 +0000)
This fixes a minor memory leak.
src/journal/journald-kmsg.c
patch
|
blob
|
history
diff --git
a/src/journal/journald-kmsg.c
b/src/journal/journald-kmsg.c
index
7ad6733
..
7644beb
100644
(file)
--- a/
src/journal/journald-kmsg.c
+++ b/
src/journal/journald-kmsg.c
@@
-191,7
+191,7
@@
static void dev_kmsg_record(Server *s, char *p, size_t l) {
e = memchr(k, '\n', l);
if (!e)
-
return
;
+
goto finish
;
*e = 0;