From 1263b6607fb880aab5a24f8d518db8c02cf12f71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arsen=20Arsenovi=C4=87?= Date: Sun, 30 Aug 2020 00:06:44 +0200 Subject: [PATCH] bin/xbps-rindex: fix a leak in load_rsa_privkey Closes: #327 [via git-merge-pr] --- bin/xbps-rindex/sign.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/bin/xbps-rindex/sign.c b/bin/xbps-rindex/sign.c index 4c7d4a79..cf3d540f 100644 --- a/bin/xbps-rindex/sign.c +++ b/bin/xbps-rindex/sign.c @@ -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);