Commit 09b3d33d by yuangli

fix memory leak

parent 829555a9
......@@ -684,6 +684,8 @@ int git_pkt_buffer_wants(
git_str_printf(buf, "%04x%s", (unsigned int)git_str_len(&shallow_buf) + 4, git_str_cstr(&shallow_buf));
git_str_dispose(&shallow_buf);
if (git_str_oom(buf))
return -1;
}
......
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