diff options
author | Vicent Marti <tanoku@gmail.com> | 2012-06-19 02:33:03 +0200 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2012-06-19 02:33:03 +0200 |
commit | b93688d06d4128480ef746856532afa1e53d1e23 (patch) | |
tree | fcba34f7f9c51f2cef5e7fe4ae3f4cd22c0a52a3 /src/tree.c | |
parent | 515a4c7c0634018097d3cd85f6a819dabe4cfd32 (diff) | |
parent | 027d77ee5c3e9ac859ceac986ceb215da388b28e (diff) | |
download | libgit2-b93688d06d4128480ef746856532afa1e53d1e23.tar.gz |
Merge remote-tracking branch 'yorah/fix/notes-creation' into development
Conflicts:
src/notes.c
Diffstat (limited to 'src/tree.c')
-rw-r--r-- | src/tree.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tree.c b/src/tree.c index d575dc8ff..9bdc2180c 100644 --- a/src/tree.c +++ b/src/tree.c @@ -634,6 +634,9 @@ void git_treebuilder_clear(git_treebuilder *bld) void git_treebuilder_free(git_treebuilder *bld) { + if (bld == NULL) + return; + git_treebuilder_clear(bld); git_vector_free(&bld->entries); git__free(bld); |