mirror: munmap() our range on cleanup

This commit is contained in:
nick
2013-05-30 11:09:24 +01:00
parent 055836c8cb
commit 26c7f1b1c4

View File

@@ -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 );
}