Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Oct 2015 12:54:16 +0000 (UTC)
From:      Garrett Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r289693 - head/usr.sbin/makefs/cd9660
Message-ID:  <201510211254.t9LCsGlI063397@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ngie
Date: Wed Oct 21 12:54:15 2015
New Revision: 289693
URL: https://svnweb.freebsd.org/changeset/base/289693

Log:
  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

Modified:
  head/usr.sbin/makefs/cd9660/cd9660_write.c

Modified: head/usr.sbin/makefs/cd9660/cd9660_write.c
==============================================================================
--- head/usr.sbin/makefs/cd9660/cd9660_write.c	Wed Oct 21 12:44:51 2015	(r289692)
+++ head/usr.sbin/makefs/cd9660/cd9660_write.c	Wed Oct 21 12:54:15 2015	(r289693)
@@ -215,7 +215,7 @@ cd9660_write_path_table(FILE *fd, off_t 
 
 	ret = cd9660_write_filedata(fd, sector, buffer_head,
 	    path_table_sectors);
-	free(buffer);
+	free(buffer_head);
 	return ret;
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510211254.t9LCsGlI063397>