Skip to content
  • Mark Johnston's avatar
    Fix a memory leak introduced in r328426. · 16759360
    Mark Johnston authored
    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: