Fix a handful of small one-time memory leaks in vbackup,
and one per-package memory leak (in writethread).
This commit is contained in:
parent
067d852abe
commit
6fc7da3c52
17 changed files with 94 additions and 13 deletions
|
|
@ -29,6 +29,20 @@ _vtqalloc(void)
|
|||
return q;
|
||||
}
|
||||
|
||||
void
|
||||
_vtqfree(Queue *q)
|
||||
{
|
||||
Qel *e;
|
||||
|
||||
/* Leaks the pointers e->p! */
|
||||
while(q->head){
|
||||
e = q->head;
|
||||
q->head = e->next;
|
||||
free(e);
|
||||
}
|
||||
free(q);
|
||||
}
|
||||
|
||||
int
|
||||
_vtqsend(Queue *q, void *p)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue