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 /t/unit-tests | |
| 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 't/unit-tests')
| -rw-r--r-- | t/unit-tests/t-reftable-readwrite.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/t/unit-tests/t-reftable-readwrite.c b/t/unit-tests/t-reftable-readwrite.c index bfa069caff..27ce84445e 100644 --- a/t/unit-tests/t-reftable-readwrite.c +++ b/t/unit-tests/t-reftable-readwrite.c @@ -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) |
