From dc22846d58264bfae3b4516e2de1614b3b97a5ca Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 14 Aug 2012 23:16:46 +0200 Subject: 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). --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.c') 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; } -- cgit v1.2.3