Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Jul 2018 19:00:30 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r336749 - stable/11/sys/kern
Message-ID:  <201807261900.w6QJ0UaU091448@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Thu Jul 26 19:00:30 2018
New Revision: 336749
URL: https://svnweb.freebsd.org/changeset/base/336749

Log:
  MFC r336504, r336507:
  Provide the full module path to preload_delete_name().

Modified:
  stable/11/sys/kern/link_elf.c
  stable/11/sys/kern/link_elf_obj.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/kern/link_elf.c
==============================================================================
--- stable/11/sys/kern/link_elf.c	Thu Jul 26 18:57:51 2018	(r336748)
+++ stable/11/sys/kern/link_elf.c	Thu Jul 26 19:00:30 2018	(r336749)
@@ -1169,8 +1169,8 @@ link_elf_unload_file(linker_file_t file)
 static void
 link_elf_unload_preload(linker_file_t file)
 {
-	if (file->filename != NULL)
-		preload_delete_name(file->filename);
+	if (file->pathname != NULL)
+		preload_delete_name(file->pathname);
 }
 
 static const char *

Modified: stable/11/sys/kern/link_elf_obj.c
==============================================================================
--- stable/11/sys/kern/link_elf_obj.c	Thu Jul 26 18:57:51 2018	(r336748)
+++ stable/11/sys/kern/link_elf_obj.c	Thu Jul 26 19:00:30 2018	(r336749)
@@ -1030,9 +1030,8 @@ link_elf_unload_file(linker_file_t file)
 		free(ef->ctftab, M_LINKER);
 		free(ef->ctfoff, M_LINKER);
 		free(ef->typoff, M_LINKER);
-		if (file->filename != NULL)
-			preload_delete_name(file->filename);
-		/* XXX reclaim module memory? */
+		if (file->pathname != NULL)
+			preload_delete_name(file->pathname);
 		return;
 	}
 



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