mirror of
https://github.com/systemd/systemd.git
synced 2024-11-01 09:21:26 +03:00
core: free lines after reading them
Closes https://github.com/systemd/systemd/issues/11251.
This commit is contained in:
parent
7da7340afd
commit
7334ade4a7
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user