reftable: fix calls to free(3P)
There are a small set of calls to free(3P) in the reftable library. As the reftable allocators are pluggable we should rather call the reftable specific function, which is `reftable_free()`. Convert the code accordingly. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
12b9078066
commit
daa59e9c43
@ -1421,7 +1421,7 @@ static int stack_compact_range(struct reftable_stack *st,
|
||||
struct lock_file *table_lock = &table_locks[i];
|
||||
char *table_path = get_locked_file_path(table_lock);
|
||||
unlink(table_path);
|
||||
free(table_path);
|
||||
reftable_free(table_path);
|
||||
}
|
||||
|
||||
done:
|
||||
|
@ -76,8 +76,8 @@ static void write_table(char ***names, struct strbuf *buf, int N,
|
||||
|
||||
t_reftable_write_to_buf(buf, refs, N, logs, N, &opts);
|
||||
|
||||
free(refs);
|
||||
free(logs);
|
||||
reftable_free(refs);
|
||||
reftable_free(logs);
|
||||
}
|
||||
|
||||
static void t_log_buffer_size(void)
|
||||
|
Reference in New Issue
Block a user