btrfs: Fix double-free in Inode::_Read().

extent_data is now held by a MemoryDeleter, so thus with this line
it would have been freed twice.
This commit is contained in:
Augustin Cavalier
2019-02-15 14:19:07 -05:00
parent f4dca556ad
commit 50428c35ad
@@ -347,7 +347,6 @@ Inode::ReadAt(off_t pos, uint8* buffer, size_t* _length)
panic("unknown extent compression; %d\n", compression);
return B_BAD_DATA;
}
free(extent_data);
return B_OK;
}