From e7e20b5376567088dcf46d6b46fe01c227379fac Mon Sep 17 00:00:00 2001 From: Jeff Wendling Date: Wed, 9 Apr 2014 18:45:47 -0400 Subject: [PATCH] space monkey internal commit export [katamari commit: 108ae5a7d09e250ee03faf589b65918323d98b8a] --- ctx.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ctx.go b/ctx.go index 7ad54a0..992f052 100644 --- a/ctx.go +++ b/ctx.go @@ -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 }