From a00dfdfc5343cf6f0be282624166405f1da47a75 Mon Sep 17 00:00:00 2001 From: Andy Ying Date: Sun, 11 Sep 2016 01:16:32 -0400 Subject: [PATCH] NULL sinks_ after deletion to prevent dangling pointer --- src/logging.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/logging.cc b/src/logging.cc index ec9eef1..0b5e6ee 100644 --- a/src/logging.cc +++ b/src/logging.cc @@ -825,6 +825,7 @@ void LogDestination::DeleteLogDestinations() { } MutexLock l(&sink_mutex_); delete sinks_; + sinks_ = NULL; } namespace { -- 2.7.4