Date: Thu, 31 Dec 2015 19:33:18 +0000 (UTC) From: Devin Teske <dteske@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r292999 - head/sys/boot/forth Message-ID: <201512311933.tBVJXI7j022620@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dteske Date: Thu Dec 31 19:33:17 2015 New Revision: 292999 URL: https://svnweb.freebsd.org/changeset/base/292999 Log: Fix a memory leak. nextboot_conf_file is not volatile, as far as I can tell, and thus the strdup is entirely unnecessary. Thanks to: Toomas Soome (tsoome at-me dot-com) MFC after: 1 week Modified: head/sys/boot/forth/support.4th Modified: head/sys/boot/forth/support.4th ============================================================================== --- head/sys/boot/forth/support.4th Thu Dec 31 19:32:46 2015 (r292998) +++ head/sys/boot/forth/support.4th Thu Dec 31 19:33:17 2015 (r292999) @@ -1019,7 +1019,7 @@ string current_file_name_ref \ used to p ; : get_nextboot_conf_file ( -- addr len ) - nextboot_conf_file strget strdup + nextboot_conf_file strget ; : rewrite_nextboot_file ( -- )
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201512311933.tBVJXI7j022620>