1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-02-23 21:57:46 +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) { *v = (TimerValue) {
.base = base, .base = base,
.calendar_spec = c, .calendar_spec = TAKE_PTR(c),
}; };
LIST_PREPEND(value, t->values, v); LIST_PREPEND(value, t->values, v);