diff options
| author | Patrick Steinhardt <ps@pks.im> | 2024-10-02 12:56:33 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-10-02 07:53:56 -0700 |
| commit | daa59e9c439ce0bea7fecdf4ae6bb7b9e9400b00 (patch) | |
| tree | 7dbc582e7495483089c15ed888dbc69ced0e0940 /reftable/stack.c | |
| parent | 12b90780667ac1e1235ec4106d94c558a28880f7 (diff) | |
| download | git-daa59e9c439ce0bea7fecdf4ae6bb7b9e9400b00.tar.gz | |
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>
Diffstat (limited to 'reftable/stack.c')
| -rw-r--r-- | reftable/stack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/reftable/stack.c b/reftable/stack.c index 7df28ab343..b2babe8e3d 100644 --- a/reftable/stack.c +++ b/reftable/stack.c @@ -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: |
