Fix unmapping anonymous memory slice

pull/8796/head
Jason Wilder 2017-09-06 10:23:57 -06:00
parent 97f7857715
commit 4ed9c75896
1 changed files with 1 additions and 1 deletions

View File

@ -1034,7 +1034,7 @@ func (d *indirectIndex) Size() uint32 {
}
func (d *indirectIndex) Close() error {
return munmap(d.offsets)
return munmap(d.offsets[:cap(d.offsets)])
}
// mmapAccess is mmap based block accessor. It access blocks through an