xbps-rindex/sign: fix a resource leak (CID #98687).

This commit is contained in:
Juan RP 2015-07-26 08:12:22 +02:00
parent 0b7093e108
commit 7d7f08b559

View File

@ -139,6 +139,8 @@ load_rsa_key(const char *privkey)
fprintf(stderr, "%s: failed to read the RSA privkey\n", _XBPS_RINDEX); fprintf(stderr, "%s: failed to read the RSA privkey\n", _XBPS_RINDEX);
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
free(defprivkey);
defprivkey = NULL;
return rsa; return rsa;
} }