mirror of
https://github.com/systemd/systemd.git
synced 2024-11-06 16:59:03 +03:00
core: double free in bus_timer_set_transient_property
Introduced in 3e3c5a4571
. CID #1384233.
This commit is contained in:
parent
1893972894
commit
1330648562
@ -373,10 +373,8 @@ static int bus_timer_set_transient_property(
|
||||
unit_write_settingf(u, flags|UNIT_ESCAPE_SPECIFIERS, name, "%s=%s", name, str);
|
||||
|
||||
v = new0(TimerValue, 1);
|
||||
if (!v) {
|
||||
calendar_spec_free(c);
|
||||
if (!v)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
v->base = TIMER_CALENDAR;
|
||||
v->calendar_spec = c;
|
||||
|
Loading…
Reference in New Issue
Block a user