diff options
| author | Carlos Martín Nieto <cmn@dwim.me> | 2015-10-01 07:56:19 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <cmn@dwim.me> | 2015-10-01 07:56:19 +0200 |
| commit | a99f33e9b05504ea5eccd9c9210cd4a9e8d11695 (patch) | |
| tree | 2b8c5a5972d066c3c059d58b72e35ffa25511b1f /include/git2/sys/odb_backend.h | |
| parent | ba1a5553e43c7d5853dda21b1fce2a32e0ce4fd2 (diff) | |
| parent | d3b29fb94bf1c1d0caec39b4a2c3d2061c63efec (diff) | |
| download | libgit2-a99f33e9b05504ea5eccd9c9210cd4a9e8d11695.tar.gz | |
Merge pull request #3447 from arthurschreiber/arthur/fix-odb-refdb-free
refdb and odb backends must provide `free` function
Diffstat (limited to 'include/git2/sys/odb_backend.h')
| -rw-r--r-- | include/git2/sys/odb_backend.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/git2/sys/odb_backend.h b/include/git2/sys/odb_backend.h index fe102ff3c..e423a9236 100644 --- a/include/git2/sys/odb_backend.h +++ b/include/git2/sys/odb_backend.h @@ -83,6 +83,10 @@ struct git_odb_backend { git_odb_writepack **, git_odb_backend *, git_odb *odb, git_transfer_progress_cb progress_cb, void *progress_payload); + /** + * Frees any resources held by the odb (including the `git_odb_backend` + * itself). An odb backend implementation must provide this function. + */ void (* free)(git_odb_backend *); }; |
