Artifact 13a18a6baa7c2c4c17843ff71f34598312343921:
- File server/buildpkgs/tls/patches/1.6/tls-1.6-fixmemleak-bugid3041925.diff — part of check-in [3a165b9347] at 2010-10-08 13:10:27 on branch trunk — Added memory leak patch for Tls 1.6 (user: rkeene, size: 418) [annotate] [blame] [check-ins using]
diff -uNr tls1.6.orig/tls.c tls1.6-fixmemleak-bugid3041925/tls.c --- tls1.6.orig/tls.c 2008-03-19 17:06:13.000000000 -0500 +++ tls1.6-fixmemleak-bugid3041925/tls.c 2010-10-08 13:03:39.000000000 -0500 @@ -1156,6 +1156,8 @@ peer = SSL_get_certificate(statePtr->ssl); if (peer) { objPtr = Tls_NewX509Obj(interp, peer); + + if (objc == 2) X509_free(peer); } else { objPtr = Tcl_NewListObj(0, NULL); }