projects
/
platform
/
upstream
/
glog.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0472b91
)
NULL sinks_ after deletion to prevent dangling pointer
author
Andy Ying
<andy@trailofbits.com>
Sun, 11 Sep 2016 05:16:32 +0000
(
01:16
-0400)
committer
Andy Ying
<andy@trailofbits.com>
Sun, 11 Sep 2016 05:16:32 +0000
(
01:16
-0400)
src/logging.cc
patch
|
blob
|
history
diff --git
a/src/logging.cc
b/src/logging.cc
index
ec9eef1
..
0b5e6ee
100644
(file)
--- a/
src/logging.cc
+++ b/
src/logging.cc
@@
-825,6
+825,7
@@
void LogDestination::DeleteLogDestinations() {
}
MutexLock l(&sink_mutex_);
delete sinks_;
+ sinks_ = NULL;
}
namespace {