commit | a00dfdfc5343cf6f0be282624166405f1da47a75 | [log] [tgz] |
---|---|---|
author | Andy Ying <andy@trailofbits.com> | Sun Sep 11 01:16:32 2016 -0400 |
committer | Andy Ying <andy@trailofbits.com> | Sun Sep 11 01:16:32 2016 -0400 |
tree | 784ed2545aa50e2f003892111d63d1e100a3705e | |
parent | 0472b91c5defdf90cff7292e3bf7bd86770a9a0a [diff] |
NULL sinks_ after deletion to prevent dangling pointer
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 @@ } MutexLock l(&sink_mutex_); delete sinks_; + sinks_ = NULL; } namespace {