mirror of
https://github.com/systemd/systemd.git
synced 2024-12-22 17:35:35 +03:00
journald: free the allocated memory before returning from dev_kmsg_record
This fixes a minor memory leak.
This commit is contained in:
parent
1e0c5fc2a7
commit
30eddcd51b
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user