Deliberately leak logfile string storage, so it's always around

This commit is contained in:
baldurk
2016-06-28 18:23:41 +02:00
parent af27e0de3b
commit 6854c5bf96
+4 -2
View File
@@ -254,8 +254,10 @@ uint64_t Log2Floor(uint64_t value)
static string &logfile()
{
static string fn;
return fn;
// deliberately leak this so that it doesn't get destructed while we're still logging in process
// teardown.
static string *fn = new string;
return *fn;
}
const char *rdclog_getfilename()