fix use after free (thanks to valgrind)

This commit is contained in:
Andreas Öman 2007-08-21 19:29:17 +00:00
parent d440e8ff3a
commit b958f02d6b

View file

@ -264,8 +264,8 @@ pvr_recorder_thread(void *aux)
while((pd = TAILQ_FIRST(&pvrr->pvrr_dq)) != NULL) {
TAILQ_REMOVE(&pvrr->pvrr_dq, pd, link);
free(pd);
free(pd->tsb);
free(pd);
}
pthread_mutex_unlock(&pvrr->pvrr_dq_mutex);