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

core: TAKE_PTR in timer_add_one_calendar_spec

Introduced in d00a52c

Fixes #13373
This commit is contained in:
Anita Zhang 2019-08-21 23:03:16 -07:00 committed by Zbigniew Jędrzejewski-Szmek
parent 1262ecb983
commit 23f8fbb303

View File

@ -196,7 +196,7 @@ static int timer_add_one_calendar_spec(
*v = (TimerValue) {
.base = base,
.calendar_spec = c,
.calendar_spec = TAKE_PTR(c),
};
LIST_PREPEND(value, t->values, v);