From 8af503bc85a92242bd698cca1e8594af909811c6 Mon Sep 17 00:00:00 2001 From: Michael Schubert Date: Sat, 28 Apr 2012 20:49:05 +0200 Subject: [PATCH] remote: add more doc on git_remote_free --- include/git2/remote.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/git2/remote.h b/include/git2/remote.h index 09b927e28..7af4148dc 100644 --- a/include/git2/remote.h +++ b/include/git2/remote.h @@ -176,6 +176,9 @@ GIT_EXTERN(void) git_remote_disconnect(git_remote *remote); /** * Free the memory associated with a remote * + * This also disconnects from the remote, if the connection + * has not been closed yet (using git_remote_disconnect). + * * @param remote the remote to free */ GIT_EXTERN(void) git_remote_free(git_remote *remote);