[block-cache] fix leaking validators

The memory for the blocks is explicitly managed, and the destructors
for the blocks wasn't being called.
This commit is contained in:
Joe Thornber
2014-08-21 12:54:39 +01:00
parent 0d3942cae8
commit 4799becb01
2 changed files with 17 additions and 5 deletions

View File

@@ -138,6 +138,7 @@ namespace bcache {
private:
int init_free_list(unsigned count);
void exit_free_list();
block *__alloc_block();
void complete_io(block &b, int result);
void issue_low_level(block &b, enum io_iocb_cmd opcode, const char *desc);