summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Janes <mark.a.janes@intel.com>2017-03-15 09:34:08 -0700
committerMark Janes <mark.a.janes@intel.com>2017-06-19 14:04:51 -0700
commit9cfdf9d408066e8bd04b5b0af54eec42154f9d06 (patch)
tree919d366aa6321114c78e0237a74a29a3542741bc
parent5a6b9b1d92b71f03469bbb39c761b8c97b9ab0d0 (diff)
Shaders: Fix off-by-one memory error on shutdown
Found-by: Eero Tamminen <eero.t.tamminen@intel.com>
-rw-r--r--retrace/daemon/glframe_stderr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/retrace/daemon/glframe_stderr.cpp b/retrace/daemon/glframe_stderr.cpp
index 211d2fc5..7ebaea7c 100644
--- a/retrace/daemon/glframe_stderr.cpp
+++ b/retrace/daemon/glframe_stderr.cpp
@@ -300,7 +300,7 @@ StdErrRedirect::poll(int current_program, StateTrack *cb) {
}
StdErrRedirect::~StdErrRedirect() {
- close(out_pipe[2]);
+ close(out_pipe[0]);
}
void