Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 99090a8

Browse files
committed
Merge pull request libgit2#3289 from ethomson/warnings4
iterator_walk: cast away constness for free
2 parents f034c85 + dd6b24b commit 99090a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/iterator.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1921,8 +1921,8 @@ int git_iterator_walk(
19211921
}
19221922

19231923
done:
1924-
git__free(iterator_item);
1925-
git__free(cur_items);
1924+
git__free((git_index_entry **)iterator_item);
1925+
git__free((git_index_entry **)cur_items);
19261926

19271927
if (error == GIT_ITEROVER)
19281928
error = 0;

0 commit comments

Comments
 (0)