Skip to content

Commit

Permalink
Free cmd for --dry-run too
Browse files Browse the repository at this point in the history
Prevent memory leak and the memory sanatizer failing.
  • Loading branch information
ffesti committed Jun 17, 2024
1 parent 91a5c32 commit 1a0ec31
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/rpmuncompress.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ int main(int argc, char *argv[])

if (dryrun) {
ec = EXIT_SUCCESS;
free(cmd);
goto exit;
}

Expand Down

0 comments on commit 1a0ec31

Please sign in to comment.