directory: fix leak introduced with threaded update
Use freeList() instead of free() to free all elements in the list.
This commit is contained in:
parent
260e1a9037
commit
74b34f7b61
|
@ -149,7 +149,7 @@ static void * update_task(void *arg)
|
|||
}
|
||||
node = node->nextNode;
|
||||
}
|
||||
free(path_list);
|
||||
freeList(path_list);
|
||||
} else {
|
||||
ret = updateDirectory(mp3rootDirectory);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue