Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177783379
D61806.1795274067.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
440 B
Referenced Files
None
Subscribers
None
D61806.1795274067.diff
View Options
diff --git a/sys/kern/uipc_shm.c b/sys/kern/uipc_shm.c
--- a/sys/kern/uipc_shm.c
+++ b/sys/kern/uipc_shm.c
@@ -1549,6 +1549,8 @@
*/
error = shm_remove(path_to, fnv_to, td->td_ucred);
if (error != 0 && error != ENOENT) {
+ if ((flags & SHM_RENAME_EXCHANGE) != 0 && fd_to != NULL)
+ shm_drop(fd_to);
shm_insert(path_from, fnv_from, fd_from);
shm_drop(fd_from);
/* Don't free path_from now, since the hash references it */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 21, 3:14 PM (13 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41890688
Default Alt Text
D61806.1795274067.diff (440 B)
Attached To
Mode
D61806: shm: Fix a shm object refcount leak in shm_rename(SHM_RENAME_EXCHANGE)
Attached
Detach File
Event Timeline