mirror: munmap() our range on cleanup
This commit is contained in:
@@ -260,6 +260,11 @@ void mirror_cleanup( struct server * serve,
|
|||||||
NULLCHECK( mirror );
|
NULLCHECK( mirror );
|
||||||
info( "Cleaning up mirror thread");
|
info( "Cleaning up mirror thread");
|
||||||
|
|
||||||
|
if ( mirror->mapped ) {
|
||||||
|
munmap( mirror->mapped, serve->size );
|
||||||
|
}
|
||||||
|
mirror->mapped = NULL;
|
||||||
|
|
||||||
if( mirror->client && mirror->client > 0 ){
|
if( mirror->client && mirror->client > 0 ){
|
||||||
close( mirror->client );
|
close( mirror->client );
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user