Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/iterator.h')
-rw-r--r--src/iterator.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/iterator.h b/src/iterator.h
index 12eb96bb0..974c2daeb 100644
--- a/src/iterator.h
+++ b/src/iterator.h
@@ -71,6 +71,9 @@ GIT_INLINE(int) git_iterator_reset(git_iterator *iter)
GIT_INLINE(void) git_iterator_free(git_iterator *iter)
{
+ if (iter == NULL)
+ return;
+
iter->free(iter);
git__free(iter);
}