diff options
| author | Vicent Martà <vicent@github.com> | 2012-09-06 01:17:23 -0700 |
|---|---|---|
| committer | Vicent Martà <vicent@github.com> | 2012-09-06 01:17:23 -0700 |
| commit | 7a3fc9fb175849a7ae55c88b4e0b3a5af58f5a22 (patch) | |
| tree | a84c7302ef1f6b0ef3f34b266220c0774a535217 /src/odb.c | |
| parent | 4e2b8b4cdccc41f39a35c8e01578e0aa08c4f661 (diff) | |
| parent | c49d328cf433da1bf25a97e3935069308daf7f8d (diff) | |
| download | libgit2-7a3fc9fb175849a7ae55c88b4e0b3a5af58f5a22.tar.gz | |
Merge pull request #900 from pwkelley/development
Expose a malloc function to 3rd party ODB backends
Diffstat (limited to 'src/odb.c')
| -rw-r--r-- | src/odb.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -708,6 +708,11 @@ int git_odb_open_rstream(git_odb_stream **stream, git_odb *db, const git_oid *oi return error; } +void * git_odb_backend_malloc(git_odb_backend *backend, size_t len) +{ + return git__malloc(len); +} + int git_odb__error_notfound(const char *message, const git_oid *oid) { if (oid != NULL) { |
