projects
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cafe4cc
)
core: free lines after reading them
author
Evgeny Vereshchagin
<evvers@ya.ru>
Sun, 23 Dec 2018 14:01:03 +0000
(15:01 +0100)
committer
Michael Biebl
<biebl@debian.org>
Sat, 12 Jan 2019 20:49:44 +0000
(20:49 +0000)
Closes https://github.com/systemd/systemd/issues/11251.
(cherry picked from commit
7334ade4a7e103b1a01d1c8fe1ea7c7a854a1c31
)
(cherry picked from commit
5fa79ab2eb900fc58824060e3dcf9508276c9047
)
Gbp-Pq: Name core-free-lines-after-reading-them.patch
src/core/manager.c
patch
|
blob
|
history
diff --git
a/src/core/manager.c
b/src/core/manager.c
index 35d9753b1245927a7758b95db6613394819b8896..6086531bab7a624617dd5a56aaabfb6bc3089810 100644
(file)
--- a/
src/core/manager.c
+++ b/
src/core/manager.c
@@
-3243,11
+3243,11
@@
static int manager_deserialize_one_unit(Manager *m, const char *name, FILE *f, F
}
static int manager_deserialize_units(Manager *m, FILE *f, FDSet *fds) {
- _cleanup_free_ char *line = NULL;
const char *unit_name;
int r;
for (;;) {
+ _cleanup_free_ char *line = NULL;
/* Start marker */
r = read_line(f, LONG_LINE_MAX, &line);
if (r < 0)