mirror of
https://github.com/systemd/systemd.git
synced 2024-12-23 21:35:11 +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);
|
e = memchr(k, '\n', l);
|
||||||
if (!e)
|
if (!e)
|
||||||
return;
|
goto finish;
|
||||||
|
|
||||||
*e = 0;
|
*e = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user