diff options
author | 2018-12-23 15:01:03 +0100 | |
---|---|---|
committer | 2018-12-28 15:36:00 +0900 | |
commit | 7334ade4a7e103b1a01d1c8fe1ea7c7a854a1c31 (patch) | |
tree | b56ee7e03aea745828109968f61568003793bdea | |
parent | Do not start server if it is already runnning (#11245) (diff) | |
download | systemd-7334ade4a7e103b1a01d1c8fe1ea7c7a854a1c31.tar.gz systemd-7334ade4a7e103b1a01d1c8fe1ea7c7a854a1c31.tar.bz2 systemd-7334ade4a7e103b1a01d1c8fe1ea7c7a854a1c31.zip |
core: free lines after reading them
Closes https://github.com/systemd/systemd/issues/11251.
-rw-r--r-- | src/core/manager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/manager.c b/src/core/manager.c index 35d9753b1..6086531ba 100644 --- 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) |