diff --git a/src/io.c b/src/io.c index e0a9c9be68160fdccec64f1e08f1c645af581570..defbe46bd144ab56f75b7ea6f7ca9da546b72f29 100644 --- a/src/io.c +++ b/src/io.c @@ -4,7 +4,7 @@ * Copyright (C) 2008 Timo Teräs * All rights reserved. * - * This program is free software; you can redistribute it and/or modify it + * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 as published * by the Free Software Foundation. See http://www.gnu.org/ for details. */ @@ -257,6 +257,7 @@ static void mmap_close(void *stream, csum_t csum, size_t *size) *size = mbs->size; munmap(mbs->ptr, mbs->size); + close(mbs->fd); free(mbs); }