From 42afd55d1e0412eefee82487688a5eab151df998 Mon Sep 17 00:00:00 2001 From: Enji Cooper Date: Wed, 21 Oct 2015 12:54:15 +0000 Subject: [PATCH] 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 --- usr.sbin/makefs/cd9660/cd9660_write.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/makefs/cd9660/cd9660_write.c b/usr.sbin/makefs/cd9660/cd9660_write.c index bdca0e631a7d..e17752a974fb 100644 --- a/usr.sbin/makefs/cd9660/cd9660_write.c +++ b/usr.sbin/makefs/cd9660/cd9660_write.c @@ -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; }