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 ec9eef1b83dacc36cfde82d40498de0bd42b722a..0b5e6ee97272cd5df4979e2c290db36bb8d62c79 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 {