Commit edca6c8f by Michael Schubert

git_odb_object_free: don't segfault w/ arg == NULL

parent 4bc1a30f
......@@ -107,6 +107,9 @@ git_otype git_odb_object_type(git_odb_object *object)
void git_odb_object_free(git_odb_object *object)
{
if (object == NULL)
return;
git_cached_obj_decref((git_cached_obj *)object, &free_odb_object);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment