mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-15 16:48:22 -04:00
Tell libavl to free() ITML <-> DB mappings
The mappings should be free()d with the standard free() when we are done with the tree. This fixes a memory leak.
This commit is contained in:
parent
2cb67743fc
commit
f126b04521
@ -815,7 +815,7 @@ scan_itunes_itml(char *file)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
itml_to_db = avl_alloc_tree(itml_to_db_compare, NULL);
|
itml_to_db = avl_alloc_tree(itml_to_db_compare, free);
|
||||||
if (!itml_to_db)
|
if (!itml_to_db)
|
||||||
{
|
{
|
||||||
DPRINTF(E_FATAL, L_SCAN, "iTunes library parser could not allocate AVL tree\n");
|
DPRINTF(E_FATAL, L_SCAN, "iTunes library parser could not allocate AVL tree\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user