mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-21 18:03:41 +03:00
shared/logs-show: fix memleak in add_matches_for_unit
This commit is contained in:
parent
26e00f0e6a
commit
42fbdf4586
@ -1073,7 +1073,7 @@ int add_matches_for_unit(sd_journal *j, const char *unit) {
|
||||
);
|
||||
|
||||
if (r == 0 && endswith(unit, ".slice")) {
|
||||
char *m5 = strappend("_SYSTEMD_SLICE=", unit);
|
||||
const char *m5 = strjoina("_SYSTEMD_SLICE=", unit);
|
||||
|
||||
/* Show all messages belonging to a slice */
|
||||
(void)(
|
||||
|
Loading…
x
Reference in New Issue
Block a user