X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=include%2Fgit2%2Foidarray.h;h=94fc58daba46c6467f15f96324fbc4553a55977b;hb=c25aa7cd825ba972c2a1a902c73ce3a8c8a59ec3;hp=0b320459787e429a6b066bf90fd66b462605d0aa;hpb=22a2d3d5efc740ba0dc69175b8bbb1e715e0257e;p=libgit2.git diff --git a/include/git2/oidarray.h b/include/git2/oidarray.h index 0b3204597..94fc58dab 100644 --- a/include/git2/oidarray.h +++ b/include/git2/oidarray.h @@ -19,19 +19,16 @@ typedef struct git_oidarray { } git_oidarray; /** - * Free the OID array - * - * This method must (and must only) be called on `git_oidarray` - * objects where the array is allocated by the library. Not doing so, - * will result in a memory leak. + * Free the object IDs contained in an oid_array. This method should + * be called on `git_oidarray` objects that were provided by the + * library. Not doing so will result in a memory leak. * * This does not free the `git_oidarray` itself, since the library will - * never allocate that object directly itself (it is more commonly embedded - * inside another struct or created on the stack). + * never allocate that object directly itself. * * @param array git_oidarray from which to free oid data */ -GIT_EXTERN(void) git_oidarray_free(git_oidarray *array); +GIT_EXTERN(void) git_oidarray_dispose(git_oidarray *array); /** @} */ GIT_END_DECL