diff --git a/src/mirror.c b/src/mirror.c index 25c061f..4f1523d 100644 --- a/src/mirror.c +++ b/src/mirror.c @@ -260,6 +260,11 @@ void mirror_cleanup( struct server * serve, NULLCHECK( mirror ); info( "Cleaning up mirror thread"); + if ( mirror->mapped ) { + munmap( mirror->mapped, serve->size ); + } + mirror->mapped = NULL; + if( mirror->client && mirror->client > 0 ){ close( mirror->client ); }