summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2015-07-02 10:36:15 -0500
committerEdward Thomson <ethomson@edwardthomson.com>2015-07-02 10:36:15 -0500
commitdd6b24b19a02a5402b237e9fa9ba29cfee5b6ccf (patch)
tree9ba53759d29b4a1e1291c73b1e9b6a590dadeca6
parenteb94199fe46f01ebefeaf71cd408a1bd9f1e64fc (diff)
downloadlibgit2-dd6b24b19a02a5402b237e9fa9ba29cfee5b6ccf.tar.gz
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;