Fix memory leak
Summary: Fixes https://github.com/facebook/flipper/issues/1561 Thanks to rdunlop for finding this! Reviewed By: cekkaewnumchai Differential Revision: D24923154 fbshipit-source-id: f4904730aecb9ecd7f391b5e1dcabc6a6db038cf
This commit is contained in:
committed by
Facebook GitHub Bot
parent
cb625d38dc
commit
07212ec8e0
@@ -205,11 +205,8 @@ bool generateCertSigningRequest(
|
||||
}
|
||||
|
||||
ret = BIO_flush(csrBio);
|
||||
if (ret != 1) {
|
||||
free(pKey, x509_req, bne, privateKey, csrBio);
|
||||
return ret;
|
||||
}
|
||||
|
||||
free(pKey, x509_req, bne, privateKey, csrBio);
|
||||
return (ret == 1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user