Fix potential use after free

This commit is contained in:
Thomas Egerer 2011-01-18 15:59:35 +01:00 committed by Martin Willi
parent 7cfa84f540
commit f2e2a40550
1 changed files with 1 additions and 1 deletions

View File

@ -227,13 +227,13 @@ static bool log_cb(entry_t *entry, log_data_t *data)
{
entry->blocker = FALSE;
entry->condvar->signal(entry->condvar);
entry->calling--;
}
else
{
entry_destroy(entry);
}
va_end(args);
entry->calling--;
return TRUE;
}
va_end(args);