Skip to content

Commit

Permalink
Merge branch '4616_tar_double_free'
Browse files Browse the repository at this point in the history
* 4616_tar_double_free:
  Ticket #4616: (tar_read_header): fix double free.
  • Loading branch information
aborodin committed Dec 21, 2024
2 parents d205be6 + 152362b commit 0df9c46
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/vfs/tar/tar.c
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,6 @@ tar_read_header (struct vfs_class *me, struct vfs_s_super *archive)
data_block = tar_find_next_block (arch);
if (data_block == NULL)
{
g_free (header_copy);
message (D_ERROR, MSG_ERROR, _("Unexpected EOF on archive file"));
status = HEADER_FAILURE;
goto ret;
Expand Down

0 comments on commit 0df9c46

Please sign in to comment.