From 049e03fd5dd9e8d179a406f67fe636764c5a1df1 Mon Sep 17 00:00:00 2001 From: Marcel Poul Date: Mon, 29 Oct 2012 15:57:16 +0000 Subject: [PATCH] Another memory leaks fixed (GGUS 86453) --- org.gridsite.core/src/grst_x509.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/org.gridsite.core/src/grst_x509.c b/org.gridsite.core/src/grst_x509.c index f088637..99174bb 100644 --- a/org.gridsite.core/src/grst_x509.c +++ b/org.gridsite.core/src/grst_x509.c @@ -2166,7 +2166,11 @@ int GRSTx509CreateProxyRequest(char **reqtxt, char **keytxt, char *ocspurl) X509_REQ_free(certreq); EVP_PKEY_free(pkey); - + if (ent) + X509_NAME_ENTRY_free(ent); + if (subject) + X509_NAME_free(subject); + return 0; } @@ -2269,6 +2273,10 @@ int GRSTx509MakeProxyRequest(char **reqtxt, char *proxydir, X509_REQ_free(certreq); EVP_PKEY_free(pkey); + if (ent) + X509_NAME_ENTRY_free(ent); + if (subject) + X509_NAME_free(subject); return 0; } -- 1.8.2.3