Skip to content

Commit

Permalink
Fix a memory leak at tape_read_attr() (#415)
Browse files Browse the repository at this point in the history
  • Loading branch information
Atsushi Abe authored Aug 24, 2023
1 parent 418f020 commit 7d5c5af
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libltfs/tape.c
Original file line number Diff line number Diff line change
Expand Up @@ -3553,6 +3553,8 @@ int tape_read_attr(struct device_data *dev, const tape_partition_t part,
ret = len;
}

free(inner_buf);

return ret;
}

Expand Down

0 comments on commit 7d5c5af

Please sign in to comment.