• Max Kellermann's avatar
    update: locked delete after update error · 2bb7bcc7
    Max Kellermann authored
    When a directory failed to update, it was removed from the database,
    without freeing all children and songs (memory leak), and without
    locking (race condition).  Introduce the functions clear_directory()
    and delete_directory(), which do both.
    2bb7bcc7
update.c 13.7 KB