aboutsummaryrefslogtreecommitdiffstats
path: root/src/log.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-09 15:41:02 +0200
committerEric Wong <normalperson@yhbt.net>2008-10-11 19:21:50 -0700
commit8aed358a9770618c93c0b33417f2b62fbb9a513e (patch)
tree656cfa8336175370054d67f9880c10e1d4b9fd9e /src/log.h
parent997d4c2ac9d6ea91cfcab8de195d3e7e40849a20 (diff)
downloadmpd-8aed358a9770618c93c0b33417f2b62fbb9a513e.tar.gz
mpd-8aed358a9770618c93c0b33417f2b62fbb9a513e.tar.xz
mpd-8aed358a9770618c93c0b33417f2b62fbb9a513e.zip
update: locked delete after update error
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.
Diffstat (limited to 'src/log.h')
0 files changed, 0 insertions, 0 deletions