natefinch/npipe

Missing finalizer

Opened this issue · 0 comments

When a PipeConn or PipeListener instance goes out of scope without having closed an underlying Win32 pipe handler, the pipe will remain open.

This can be solved by setting a finalizer:
http://golang.org/pkg/runtime/#SetFinalizer