Skip to content
  • markj's avatar
    Fix a memory leak introduced in r328426. · 65a57d39
    markj 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:	https://reviews.freebsd.org/D14390
    65a57d39