Commit dd6b24b19a02a5402b237e9fa9ba29cfee5b6ccf

Edward Thomson 2015-07-02T10:36:15

iterator_walk: cast away constness for free

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/src/iterator.c b/src/iterator.c
index 2c3a87a..a312afb 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;