Commit 6616e207506d2c3ac287a3c5e631b3d442464bed

Carlos Martín Nieto 2011-11-22T11:17:03

Add a note not to free the result from git_remote_ls

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/include/git2/remote.h b/include/git2/remote.h
index 87f84f8..43bbe9e 100644
--- a/include/git2/remote.h
+++ b/include/git2/remote.h
@@ -100,7 +100,8 @@ GIT_EXTERN(int) git_remote_connect(struct git_remote *remote, int direction);
 /**
  * Get a list of refs at the remote
  *
- * The remote (or more exactly its transport) must be connected.
+ * The remote (or more exactly its transport) must be connected. The
+ * memory belongs to the remote.
  *
  * @param refs where to store the refs
  * @param remote the remote