1 # Fixes a file handle leak in the execute_capture functions.
2 Index: rtorrent/src/rpc/exec_file.cc
3 ===================================================================
4 --- rtorrent/src/rpc/exec_file.cc (revision 1093)
5 +++ rtorrent/src/rpc/exec_file.cc (working copy)
7 m_capture += std::string(buffer, length);
13 write(m_logFd, "Captured output:\n", sizeof("Captured output:\n"));
14 write(m_logFd, m_capture.data(), m_capture.length());