xbps-rindex/sign: fix a resource leak (CID #98687).
This commit is contained in:
parent
0b7093e108
commit
7d7f08b559
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user