Missing dispose

parent c7e8de17
......@@ -404,8 +404,10 @@ int git_tag_create_from_buffer(git_oid *oid, git_repository *repo, const char *b
/* write the buffer */
if ((error = git_odb_open_wstream(
&stream, odb, strlen(buffer), GIT_OBJECT_TAG)) < 0)
&stream, odb, strlen(buffer), GIT_OBJECT_TAG)) < 0) {
git_str_dispose(&ref_name);
return error;
}
if (!(error = git_odb_stream_write(stream, buffer, strlen(buffer))))
error = git_odb_stream_finalize_write(oid, stream);
......
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