From f8bd730cd90a1e6219447cc9c05f41295d42bbcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Rodri=CC=81guez=20Troitin=CC=83o?= Date: Sun, 26 May 2013 17:29:00 +0200 Subject: [PATCH] Fix documentation of git_branch_delete. The reference should be freed by the user, not the library. --- include/git2/branch.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/git2/branch.h b/include/git2/branch.h index d1838a63a..de414e9b0 100644 --- a/include/git2/branch.h +++ b/include/git2/branch.h @@ -58,7 +58,8 @@ GIT_EXTERN(int) git_branch_create( * Delete an existing branch reference. * * If the branch is successfully deleted, the passed reference - * object will be freed and invalidated. + * object will be invalidated. The reference must be freed manually + * by the user. * * @param branch A valid reference representing a branch * @return 0 on success, or an error code.