lib/verifysig.c: resource leak (CID 62727)
This commit is contained in:
parent
a15dc24fe8
commit
aae88aa253
@ -82,7 +82,7 @@ xbps_verify_file_signature(struct xbps_repo *repo, const char *fname)
|
|||||||
{
|
{
|
||||||
xbps_dictionary_t repokeyd = NULL;
|
xbps_dictionary_t repokeyd = NULL;
|
||||||
xbps_data_t pubkey;
|
xbps_data_t pubkey;
|
||||||
const char *hexfp = NULL;
|
char *hexfp = NULL;
|
||||||
unsigned char *buf = NULL, *sig_buf = NULL;
|
unsigned char *buf = NULL, *sig_buf = NULL;
|
||||||
size_t buflen, filelen, sigbuflen, sigfilelen;
|
size_t buflen, filelen, sigbuflen, sigfilelen;
|
||||||
char *rkeyfile = NULL, *sig = NULL;
|
char *rkeyfile = NULL, *sig = NULL;
|
||||||
@ -132,6 +132,8 @@ xbps_verify_file_signature(struct xbps_repo *repo, const char *fname)
|
|||||||
val = true;
|
val = true;
|
||||||
|
|
||||||
out:
|
out:
|
||||||
|
if (hexfp)
|
||||||
|
free(hexfp);
|
||||||
if (rkeyfile)
|
if (rkeyfile)
|
||||||
free(rkeyfile);
|
free(rkeyfile);
|
||||||
if (buf)
|
if (buf)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user