Unbreak makefs -t cd9660 after r289687

buffer_head needs to be freed -- not buffer

Detected by jemalloc, i.e. running makefs failed the arena assert
because my copy of malloc on CURRENT is compiled with the default
!MALLOC_PRODUCTION asserts on

Pointyhat to: ngie
PR: 203647
X-MFC with: r289687
Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
Enji Cooper 2015-10-21 12:54:15 +00:00
parent b73321f086
commit 42afd55d1e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=289693

View File

@ -215,7 +215,7 @@ cd9660_write_path_table(FILE *fd, off_t sector, int mode)
ret = cd9660_write_filedata(fd, sector, buffer_head,
path_table_sectors);
free(buffer);
free(buffer_head);
return ret;
}