Skip to content

Commit

Permalink
Fix memory leak in rpmsign
Browse files Browse the repository at this point in the history
Found by Coverity.

Fixes: RHEL-37564
  • Loading branch information
dmnks authored and pmatilai committed Aug 13, 2024
1 parent 05fbeb9 commit 65fa582
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/rpmsign.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ static int doSign(poptContext optCon, struct rpmSignArgs *sargs)
char *key = rpmExpand("%{?_file_signing_key}", NULL);
if (rstreq(key, "")) {
fprintf(stderr, _("You must set \"%%_file_signing_key\" in your macro file or on the command line with --fskpath\n"));
free(key);
goto exit;
}

Expand Down

0 comments on commit 65fa582

Please sign in to comment.