Skip to content

Commit

Permalink
filerec_free should not call filerec_close(). The only places we call
Browse files Browse the repository at this point in the history
filerec_free() already handle the possibility of an open fd.

Signed-off-by: Mark Fasheh <mfasheh@suse.de>
  • Loading branch information
Mark Fasheh committed Dec 10, 2014
1 parent c9b8f45 commit 90c5b34
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions filerec.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,6 @@ struct filerec *filerec_new(const char *filename, uint64_t inum,
void filerec_free(struct filerec *file)
{
if (file) {
filerec_close(file);

free(file->filename);

list_del(&file->block_list);
Expand Down

0 comments on commit 90c5b34

Please sign in to comment.