diff --git a/src/refs.c b/src/refs.c index 40b80ec9b..8e2965528 100644 --- a/src/refs.c +++ b/src/refs.c @@ -333,6 +333,7 @@ static int loose_lookup( ref->mtime = ref_time; *ref_out = ref; + gitfo_free_buf(&ref_file); return GIT_SUCCESS; cleanup: