diff options
| author | Patrick Steinhardt <ps@pks.im> | 2026-03-05 15:19:46 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-03-05 11:45:15 -0800 |
| commit | 47b965079ddd9ced04810d0a8738a1ca94f02268 (patch) | |
| tree | af9780d489930b0d5fc12a28cbb493144e71a45b /odb/source.c | |
| parent | 87842f68352040858f581b64509932fb91c64f0f (diff) | |
| download | git-47b965079ddd9ced04810d0a8738a1ca94f02268.tar.xz | |
odb/source: make `free()` function pluggable
Introduce a new callback function in `struct odb_source` to make the
function pluggable.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'odb/source.c')
| -rw-r--r-- | odb/source.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/odb/source.c b/odb/source.c index c7dcc528f6..7993dcbd65 100644 --- a/odb/source.c +++ b/odb/source.c @@ -25,11 +25,9 @@ void odb_source_init(struct odb_source *source, void odb_source_free(struct odb_source *source) { - struct odb_source_files *files; if (!source) return; - files = odb_source_files_downcast(source); - odb_source_files_free(files); + source->free(source); } void odb_source_release(struct odb_source *source) |
