dtcm: Coverity 89593

This commit is contained in:
Peter Howkins 2018-07-05 00:05:21 +01:00
parent caee0e9cb5
commit 547cc3e22b
1 changed files with 3 additions and 1 deletions

View File

@ -860,7 +860,7 @@ _GetNextActiveTick(
time_t lasttick,
RepeatEvent *re)
{
RepeatEventState *restate;
RepeatEventState *restate = NULL;
time_t tick;
for (tick = ClosestTick(target, entry->key.time, re, &restate);
@ -870,6 +870,8 @@ _GetNextActiveTick(
if (tick <= 0 || !_DtCmsInExceptionList(entry, tick))
break;
}
free(restate);
return (tick);
}