fix use after free (thanks to valgrind)
This commit is contained in:
parent
d440e8ff3a
commit
b958f02d6b
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue