Page MenuHomeFreeBSD

D58150.id181689.diff
No OneTemporary

D58150.id181689.diff

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

Mime Type
text/plain
Expires
Mon, Oct 12, 9:48 PM (58 m, 5 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40705854
Default Alt Text
D58150.id181689.diff (556 B)

Event Timeline