commit | 34bdaab44dd5dac861b0d23bc29b147b569e5783 | [log] [tgz] |
---|---|---|
author | Mark McLoughlin <markmc@redhat.com> | Fri Jun 13 14:04:58 2008 +0100 |
committer | Rusty Russell <rusty@rustcorp.com.au> | Tue Jul 29 09:58:33 2008 +1000 |
tree | 15dfb12a794d9de9341a90af3a5f6358216eaec0 | |
parent | 32c68e5c569fdf016b494ce2fc8eecf59b6881bd [diff] |
lguest: Don't leak /dev/zero fd Signed-off-by: Mark McLoughlin <markmc@redhat.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
diff --git a/Documentation/lguest/lguest.c b/Documentation/lguest/lguest.c index 6ded39b..686e2d4 100644 --- a/Documentation/lguest/lguest.c +++ b/Documentation/lguest/lguest.c
@@ -254,6 +254,7 @@ PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE, fd, 0); if (addr == MAP_FAILED) err(1, "Mmaping %u pages of /dev/zero", num); + close(fd); return addr; }