Skip to content

Commit 353672f

Browse files
Chandra Pratapgitster
authored andcommitted
t-reftable-block: release used block reader
Used block readers must be released using block_reader_release() to prevent the occurence of a memory leak. Make test_block_read_write() conform to this statement. Mentored-by: Patrick Steinhardt <[email protected]> Mentored-by: Christian Couder <[email protected]> Signed-off-by: Chandra Pratap <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 6853b93 commit 353672f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

t/unit-tests/t-reftable-block.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ static void t_block_read_write(void)
105105
block_iter_close(&it);
106106
}
107107

108+
block_reader_release(&br);
108109
reftable_record_release(&rec);
109110
reftable_block_done(&br.block);
110111
strbuf_release(&want);

0 commit comments

Comments
 (0)