summaryrefslogtreecommitdiffstats
path: root/usr.sbin/makefs
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2015-10-21 12:54:15 +0000
committerngie <ngie@FreeBSD.org>2015-10-21 12:54:15 +0000
commit568245e7112225f485247fdaf415b9d4fa531606 (patch)
tree9fdb48b1081c5881ba002f6ba07ef747f08632dd /usr.sbin/makefs
parent782fe807afafb3dfe9fbc2a451a12b9534f15201 (diff)
downloadFreeBSD-src-568245e7112225f485247fdaf415b9d4fa531606.zip
FreeBSD-src-568245e7112225f485247fdaf415b9d4fa531606.tar.gz
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
Diffstat (limited to 'usr.sbin/makefs')
-rw-r--r--usr.sbin/makefs/cd9660/cd9660_write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/makefs/cd9660/cd9660_write.c b/usr.sbin/makefs/cd9660/cd9660_write.c
index bdca0e6..e17752a 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;
}
OpenPOWER on IntegriCloud