hxtool: fix leak
This commit is contained in:
		@@ -1296,9 +1296,7 @@ get_key(const char *fn, const char *type, int optbits,
 | 
				
			|||||||
            hx509_certs certs = NULL;
 | 
					            hx509_certs certs = NULL;
 | 
				
			||||||
            hx509_cert cert = NULL;
 | 
					            hx509_cert cert = NULL;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            cert = hx509_cert_init_private_key(context,
 | 
					            cert = hx509_cert_init_private_key(context, *signer, NULL);
 | 
				
			||||||
                                               _hx509_private_key_ref(*signer),
 | 
					 | 
				
			||||||
                                               NULL);
 | 
					 | 
				
			||||||
            if (cert)
 | 
					            if (cert)
 | 
				
			||||||
                ret = hx509_certs_init(context, fn,
 | 
					                ret = hx509_certs_init(context, fn,
 | 
				
			||||||
                                       HX509_CERTS_CREATE |
 | 
					                                       HX509_CERTS_CREATE |
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user