Skip to content

Commit

Permalink
linux/libspl: getextmntent(): don't leak mnttab FILE*
Browse files Browse the repository at this point in the history
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
  • Loading branch information
nabijaczleweli committed Apr 12, 2021
1 parent 93f81eb commit 65bdf33
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/libspl/os/linux/getmntany.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ getextmntent(const char *path, struct extmnttab *entry, struct stat64 *statbuf)
break;
}
}
(void) fclose(fp);

if (!match) {
(void) fprintf(stderr, "cannot find mountpoint for '%s'\n",
Expand Down

0 comments on commit 65bdf33

Please sign in to comment.