Commit 99090a8522f65ddf6348f35999694d347a884c15

Carlos Martín Nieto 2015-07-03T00:38:33

Merge pull request #3289 from ethomson/warnings4 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;