aboutsummaryrefslogtreecommitdiff
path: root/nxcomp/src/Log.h
diff options
context:
space:
mode:
Diffstat (limited to 'nxcomp/src/Log.h')
-rw-r--r--nxcomp/src/Log.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/nxcomp/src/Log.h b/nxcomp/src/Log.h
index 32779bcaa..44c43a47b 100644
--- a/nxcomp/src/Log.h
+++ b/nxcomp/src/Log.h
@@ -249,6 +249,10 @@ class NXLog
free_thread_data(pdt);
pthread_key_delete(tls_key_);
+
+ if ((stream_) && (stream_ != &std::cerr)) {
+ delete stream_;
+ }
}
/** Minimum severity level to output */