diff options
author | Max Kellermann <max@duempel.org> | 2012-08-14 23:16:46 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2012-08-14 23:16:46 +0200 |
commit | dc22846d58264bfae3b4516e2de1614b3b97a5ca (patch) | |
tree | 99c836bbbf044e119792d2168c9729e7e35c4a44 /src/main.c | |
parent | c9aaabb5d4467047514d291ff652d516a7025486 (diff) | |
download | mpd-dc22846d58264bfae3b4516e2de1614b3b97a5ca.tar.gz mpd-dc22846d58264bfae3b4516e2de1614b3b97a5ca.tar.xz mpd-dc22846d58264bfae3b4516e2de1614b3b97a5ca.zip |
log: store duplicated path string
Don't free the string right after calling log_init_file(). Add a new
function log_deinit() that frees the string on shutdown.
This fixes cycling the log file after SIGHUP (Mantis ticket 0003524).
Diffstat (limited to '')
-rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c index 44e4dcf1c..12f8d86f6 100644 --- a/src/main.c +++ b/src/main.c @@ -536,6 +536,6 @@ int mpd_main(int argc, char *argv[]) WSACleanup(); #endif - close_log_files(); + log_deinit(); return EXIT_SUCCESS; } |