Commit 567fc1d2 by Carlos Martín Nieto Committed by Vicent Marti

refs loose_lookup: also free the buffer on success

Free the ref_file buffer at the end of the function also on
success. This fixes a small memory leak.
parent 70236bab
......@@ -333,6 +333,7 @@ static int loose_lookup(
ref->mtime = ref_time;
*ref_out = ref;
gitfo_free_buf(&ref_file);
return GIT_SUCCESS;
cleanup:
......
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