Fix the malloc type used in sys_shm_unlink() after r354808.

PR:		244563
Reported by:	swills
This commit is contained in:
Mark Johnston 2020-03-03 00:28:37 +00:00
parent fd1efedc79
commit 4cf919edb9

View File

@ -961,7 +961,7 @@ sys_shm_unlink(struct thread *td, struct shm_unlink_args *uap)
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);
}