mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-26 23:45:54 +01:00
Remove redundant nullptr checks before deallocation
Rationale: * delete ptr is a no-op if ptr is nullptr
This commit is contained in:
@@ -194,8 +194,7 @@ bool PaymentRequestPlus::getMerchant(X509_STORE* certStore, QString& merchant) c
|
||||
qWarning() << "PaymentRequestPlus::getMerchant: SSL error: " << err.what();
|
||||
}
|
||||
|
||||
if (website)
|
||||
delete[] website;
|
||||
delete[] website;
|
||||
X509_STORE_CTX_free(store_ctx);
|
||||
for (unsigned int i = 0; i < certs.size(); i++)
|
||||
X509_free(certs[i]);
|
||||
|
||||
Reference in New Issue
Block a user