Commit 3dee3655 by nulltoken

local: fix memory leak

parent 9a50026b
...@@ -227,6 +227,7 @@ static int local_negotiate_fetch( ...@@ -227,6 +227,7 @@ static int local_negotiate_fetch(
git_oid_cpy(&rhead->loid, git_object_id(obj)); git_oid_cpy(&rhead->loid, git_object_id(obj));
else if (error != GIT_ENOTFOUND) else if (error != GIT_ENOTFOUND)
return error; return error;
git_object_free(obj);
giterr_clear(); giterr_clear();
} }
......
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