opnsense-src/lib/libufs
Mark Johnston 16759360d4 Fix a memory leak introduced in r328426.
ffs_sbget() may return a superblock buffer even if it fails, so the
caller must be prepared to free it in this case. Moreover, when tasting
alternate superblock locations in a loop, ffs_sbget()'s readfunc
callback must free the previously allocated buffer.

Reported and tested by:	pho
Reviewed by:		kib (previous version)
Differential Revision:	https://reviews.freebsd.org/D14390
2018-02-16 15:41:03 +00:00
..
block.c
bread.3
cgread.3 Fix punctuation. 2018-02-02 00:01:50 +00:00
cgroup.c
inode.c
libufs.3
libufs.h Refactoring of reading and writing of the UFS/FFS superblock. 2018-01-26 00:58:32 +00:00
Makefile Refactoring of reading and writing of the UFS/FFS superblock. 2018-01-26 00:58:32 +00:00
Makefile.depend
sblock.c Fix a memory leak introduced in r328426. 2018-02-16 15:41:03 +00:00
sbread.3 Refactoring of reading and writing of the UFS/FFS superblock. 2018-01-26 00:58:32 +00:00
type.c
ufs_disk_close.3