bin/xbps-rindex: fix a leak in load_rsa_privkey

Closes: #327 [via git-merge-pr]
This commit is contained in:
Arsen Arsenović authored and Duncan Overbruck committed 2021-02-04 23:15:36 +01:00
1 parent a95f3d56c8
commit 1263b6607f
1 file changed
-5
-5
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);