summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2015-07-03 00:38:33 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2015-07-03 00:38:33 +0200
commit99090a8522f65ddf6348f35999694d347a884c15 (patch)
tree0f782f645b09e4e407955017c97c210823081d9d
parentf034c8518ea955308e1bf31cf57e030fce3b0276 (diff)
parentdd6b24b19a02a5402b237e9fa9ba29cfee5b6ccf (diff)
downloadlibgit2-99090a8522f65ddf6348f35999694d347a884c15.tar.gz
Merge pull request #3289 from ethomson/warnings4
iterator_walk: cast away constness for free
-rw-r--r--src/iterator.c4
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;