Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F162678662
D58150.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
556 B
Referenced Files
None
Subscribers
None
D58150.diff
View Options
diff --git a/lib/libnetmap/nmport.c b/lib/libnetmap/nmport.c
--- a/lib/libnetmap/nmport.c
+++ b/lib/libnetmap/nmport.c
@@ -198,6 +198,7 @@
errno = ENOMEM;
goto fail;
}
+ clnup->up.cleanup = NULL;
fd = open(fname, O_RDWR);
if (fd < 0) {
@@ -215,6 +216,7 @@
goto fail;
}
close(fd);
+ fd = -1;
clnup->p = p;
clnup->size = mapsize;
@@ -230,7 +232,7 @@
if (fd >= 0)
close(fd);
if (clnup != NULL) {
- if (clnup->p != MAP_FAILED)
+ if (clnup->up.cleanup != NULL)
nmport_pop_cleanup(d);
else
nmctx_free(ctx, clnup);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jul 16, 4:20 PM (22 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34957282
Default Alt Text
D58150.diff (556 B)
Attached To
Mode
D58150: libnetmap: fix error path in nmport_extmem_from_file
Attached
Detach File
Event Timeline
Log In to Comment