bin/xbps-rindex: fix a leak in load_rsa_privkey

Closes: #327 [via git-merge-pr]
This commit is contained in:
Arsen Arsenović 2020-08-30 00:06:44 +02:00 committed by Duncan Overbruck
parent a95f3d56c8
commit 1263b6607f
No known key found for this signature in database
GPG Key ID: 335C1D17EC3D6E35

View File

@ -49,11 +49,6 @@ load_rsa_privkey(const char *path)
if ((fp = fopen(path, "r")) == 0)
return NULL;
if ((rsa = RSA_new()) == NULL) {
fclose(fp);
return NULL;
}
p = getenv("XBPS_PASSPHRASE");
if (p) {
passphrase = strdup(p);