svn commit: r358563 - head/sys/kern

Mark Johnston markj at FreeBSD.org
Tue Mar 3 00:28:39 UTC 2020


Author: markj
Date: Tue Mar  3 00:28:37 2020
New Revision: 358563
URL: https://svnweb.freebsd.org/changeset/base/358563

Log:
  Fix the malloc type used in sys_shm_unlink() after r354808.
  
  PR:		244563
  Reported by:	swills

Modified:
  head/sys/kern/uipc_shm.c

Modified: head/sys/kern/uipc_shm.c
==============================================================================
--- head/sys/kern/uipc_shm.c	Tue Mar  3 00:20:08 2020	(r358562)
+++ head/sys/kern/uipc_shm.c	Tue Mar  3 00:28:37 2020	(r358563)
@@ -961,7 +961,7 @@ sys_shm_unlink(struct thread *td, struct shm_unlink_ar
 	sx_xlock(&shm_dict_lock);
 	error = shm_remove(path, fnv, td->td_ucred);
 	sx_xunlock(&shm_dict_lock);
-	free(path, M_TEMP);
+	free(path, M_SHMFD);
 
 	return (error);
 }


More information about the svn-src-all mailing list