diff --git a/bin/xbps-rindex/sign.c b/bin/xbps-rindex/sign.c index 72d09106..8d0c0b27 100644 --- a/bin/xbps-rindex/sign.c +++ b/bin/xbps-rindex/sign.c @@ -139,6 +139,8 @@ load_rsa_key(const char *privkey) fprintf(stderr, "%s: failed to read the RSA privkey\n", _XBPS_RINDEX); exit(EXIT_FAILURE); } + free(defprivkey); + defprivkey = NULL; return rsa; }