diff options
author | Russell Belfer <rb@github.com> | 2012-05-04 11:06:12 -0700 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2012-05-04 11:06:12 -0700 |
commit | b709e95146b9d56e2c009915ccea7a86c77d4202 (patch) | |
tree | c9257b8278c8d1e28b0cfe5969317ef0ed63c315 /include/git2/attr.h | |
parent | f917481ee84cbba481c1854cccdedb2d98377d43 (diff) | |
download | libgit2-b709e95146b9d56e2c009915ccea7a86c77d4202.tar.gz |
Fix memory leaks and use after free
Diffstat (limited to 'include/git2/attr.h')
-rw-r--r-- | include/git2/attr.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/git2/attr.h b/include/git2/attr.h index dfa1d2778..6a05496dc 100644 --- a/include/git2/attr.h +++ b/include/git2/attr.h @@ -160,10 +160,10 @@ GIT_EXTERN(int) git_attr_get( * array itself if you allocated it). */ GIT_EXTERN(int) git_attr_get_many( - git_repository *repo, + git_repository *repo, uint32_t flags, const char *path, - size_t num_attr, + size_t num_attr, const char **names, const char **values); @@ -186,7 +186,7 @@ GIT_EXTERN(int) git_attr_get_many( * @param payload Passed on as extra parameter to callback function. */ GIT_EXTERN(int) git_attr_foreach( - git_repository *repo, + git_repository *repo, uint32_t flags, const char *path, int (*callback)(const char *name, const char *value, void *payload), |