Fix double free issues

This commit is contained in:
Kyle Lemons
2012-07-22 23:36:03 -07:00
parent acb3aed8c3
commit e5fd0ba6e3
5 changed files with 8 additions and 19 deletions

View File

@@ -11,7 +11,6 @@ import (
"log"
"fmt"
"reflect"
"runtime"
"time"
"unsafe"
)
@@ -62,8 +61,6 @@ func (end *endpoint) allocTransfer() *Transfer {
buf: buf,
}
runtime.SetFinalizer(t, (*Transfer).Close)
return t
}