1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-27 18:55:09 +03:00

journald: free the allocated memory before returning from dev_kmsg_record

This fixes a minor memory leak.
This commit is contained in:
Evgeny Vereshchagin 2018-08-10 12:52:07 +00:00
parent 1e0c5fc2a7
commit 30eddcd51b

View File

@ -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;