Skip to content

Commit

Permalink
fiemap: do_fiemap: fix a potential memleak
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandre Bruyelles <[email protected]>
  • Loading branch information
JackSlateur committed Nov 17, 2023
1 parent 774ff6a commit 5ed08c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fiemap.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ struct fiemap *do_fiemap(int fd)
err = ioctl(fd, FS_IOC_FIEMAP, fiemap);
if (err < 0) {
perror("fiemap");
free(fiemap);
return NULL;
}

Expand Down

0 comments on commit 5ed08c3

Please sign in to comment.