space monkey internal commit export

[katamari commit: 108ae5a7d09e250ee03faf589b65918323d98b8a]
This commit is contained in:
Jeff Wendling 2014-04-09 18:45:47 -04:00
parent 15c12df4bc
commit e7e20b5376

4
ctx.go
View File

@ -248,8 +248,8 @@ func (self *CertificateStoreCtx) GetCurrentCert() *Certificate {
cert := &Certificate{
x: x509,
}
runtime.SetFinalizer(cert, func(c *Certificate) {
C.X509_free(c.x)
runtime.SetFinalizer(cert, func(cert *Certificate) {
C.X509_free(cert.x)
})
return cert
}