diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2015-07-02 10:36:15 -0500 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2015-07-02 10:36:15 -0500 |
commit | dd6b24b19a02a5402b237e9fa9ba29cfee5b6ccf (patch) | |
tree | 9ba53759d29b4a1e1291c73b1e9b6a590dadeca6 | |
parent | eb94199fe46f01ebefeaf71cd408a1bd9f1e64fc (diff) | |
download | libgit2-dd6b24b19a02a5402b237e9fa9ba29cfee5b6ccf.tar.gz |
iterator_walk: cast away constness for free
-rw-r--r-- | src/iterator.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/iterator.c b/src/iterator.c index 2c3a87af0..a312afb3a 100644 --- a/src/iterator.c +++ b/src/iterator.c @@ -1921,8 +1921,8 @@ int git_iterator_walk( } done: - git__free(iterator_item); - git__free(cur_items); + git__free((git_index_entry **)iterator_item); + git__free((git_index_entry **)cur_items); if (error == GIT_ITEROVER) error = 0; |