bin/xbps-rindex: fix a leak in load_rsa_privkey
Closes: #327 [via git-merge-pr]
This commit is contained in:
parent
a95f3d56c8
commit
1263b6607f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user