Commit bae780e0 by Ben Straub

Rev-parse: fixing double-freeing. Thanks, Visual Studio!

parent a6346302
...@@ -277,7 +277,7 @@ static int dereference_to_type(git_object **out, git_object *obj, git_otype targ ...@@ -277,7 +277,7 @@ static int dereference_to_type(git_object **out, git_object *obj, git_otype targ
retcode = GIT_ERROR; retcode = GIT_ERROR;
} }
} }
if (obj1 != obj) { if (obj1 != obj && obj1 != obj2) {
git_object_free(obj1); git_object_free(obj1);
} }
obj1 = obj2; obj1 = obj2;
......
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