From: Marcel Poul Date: Mon, 29 Oct 2012 15:57:16 +0000 (+0000) Subject: Another memory leaks fixed (GGUS 86453) X-Git-Tag: gridsite-core_R_1_7_24~2 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=049e03fd5dd9e8d179a406f67fe636764c5a1df1;p=jra1mw.git Another memory leaks fixed (GGUS 86453) --- 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; }