summaryrefslogtreecommitdiffstats
path: root/sys/boot/forth
diff options
context:
space:
mode:
authordteske <dteske@FreeBSD.org>2015-12-31 19:33:17 +0000
committerdteske <dteske@FreeBSD.org>2015-12-31 19:33:17 +0000
commite31d4ef62a674f2f74ac2d2e59487537a2d74ec6 (patch)
tree0e7d753e232bbe787997b68c537ce16e0519b951 /sys/boot/forth
parent68a7758bef0c3004773925ced73c1a75edac03b4 (diff)
downloadFreeBSD-src-e31d4ef62a674f2f74ac2d2e59487537a2d74ec6.zip
FreeBSD-src-e31d4ef62a674f2f74ac2d2e59487537a2d74ec6.tar.gz
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
Diffstat (limited to 'sys/boot/forth')
-rw-r--r--sys/boot/forth/support.4th2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/forth/support.4th b/sys/boot/forth/support.4th
index 0fe9a8c..7812a9b 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 ( -- )
OpenPOWER on IntegriCloud