Skip to content

Commit

Permalink
Free leaking zck_src if zck_init_read fails
Browse files Browse the repository at this point in the history
  • Loading branch information
kontura committed Jul 19, 2024
1 parent 9ae7f02 commit 5133b09
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions librepo/downloader.c
Original file line number Diff line number Diff line change
Expand Up @@ -1228,6 +1228,7 @@ find_local_zck_chunks(LrTarget *target, GError **err)

zckCtx *zck_src = zck_create();
if(!zck_init_read(zck_src, chk_fd)) {
zck_free(&zck_src);
close(chk_fd);
continue;
}
Expand Down

0 comments on commit 5133b09

Please sign in to comment.