local: fix memory leak

This commit is contained in:
nulltoken 2012-11-13 07:04:30 +01:00
parent 9a50026b19
commit 3dee36557e

View File

@ -227,6 +227,7 @@ static int local_negotiate_fetch(
git_oid_cpy(&rhead->loid, git_object_id(obj));
else if (error != GIT_ENOTFOUND)
return error;
git_object_free(obj);
giterr_clear();
}