Skip to content

Fix: Avoid double free on ltfsck and mkltfs#593

Open
XV02 wants to merge 1 commit into
LinearTapeFileSystem:release/v2.4.8.4from
XV02:fix/double-free
Open

Fix: Avoid double free on ltfsck and mkltfs#593
XV02 wants to merge 1 commit into
LinearTapeFileSystem:release/v2.4.8.4from
XV02:fix/double-free

Conversation

@XV02
Copy link
Copy Markdown
Contributor

@XV02 XV02 commented May 29, 2026

Summary of changes

This PR fixes a free that was left from a section that was refactored with a cleanup

Description

When adding memory checks the files ltfsck.c and mkltfs.c were reworked to use a cleanup section, but in doing so an old free was left in there making a double free happen

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have confirmed my fix is effective or that my feature works

@XV02 XV02 requested review from amissael95, madjesc and vandelvan May 29, 2026 17:18
@XV02 XV02 self-assigned this May 29, 2026
@XV02 XV02 changed the title fix: Avoid double free on ltfsck and mkltfs Fix: Avoid double free on ltfsck and mkltfs May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant