summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCarlos Martín Nieto <carlosmn@github.com>2018-01-17 12:29:05 +0000
committerGitHub <noreply@github.com>2018-01-17 12:29:05 +0000
commitecd55cec771d9c6f7ffffe80422a1decd4645c17 (patch)
treec3891ea014d0027d11fb66f3e5f916d98652b1d5 /include
parentf1323d9c161aeeada190fd9615a8b5a9fb8a7f3e (diff)
parent782402c271d5467f9890af8e808af938a93bc55f (diff)
downloadlibgit2-ecd55cec771d9c6f7ffffe80422a1decd4645c17.tar.gz
Merge pull request #4477 from pks-t/pks/memleaks
Memory leaks
Diffstat (limited to 'include')
-rw-r--r--include/git2/refs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/git2/refs.h b/include/git2/refs.h
index dee28cb5b..0dd453e55 100644
--- a/include/git2/refs.h
+++ b/include/git2/refs.h
@@ -433,6 +433,9 @@ typedef int (*git_reference_foreach_name_cb)(const char *name, void *payload);
* passed to this method. Returning a non-zero value from the callback
* will terminate the iteration.
*
+ * Note that the callback function is responsible to call `git_reference_free`
+ * on each reference passed to it.
+ *
* @param repo Repository where to find the refs
* @param callback Function which will be called for every listed ref
* @param payload Additional data to pass to the callback