From 40c94e016823b9da0a5e6c433e0f54750df1bc0d Mon Sep 17 00:00:00 2001 From: Devin Teske Date: Thu, 31 Dec 2015 19:33:17 +0000 Subject: [PATCH] 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 --- sys/boot/forth/support.4th | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/boot/forth/support.4th b/sys/boot/forth/support.4th index 0fe9a8c9471..7812a9bafd3 100644 --- a/sys/boot/forth/support.4th +++ b/sys/boot/forth/support.4th @@ -1019,7 +1019,7 @@ string current_file_name_ref \ used to print the file name ; : get_nextboot_conf_file ( -- addr len ) - nextboot_conf_file strget strdup + nextboot_conf_file strget ; : rewrite_nextboot_file ( -- )