Junio C Hamano <gitster@xxxxxxxxx> writes: > + if (!ref_exists(branch_ref.buf)) { > + strbuf_reset(&branch_ref); > + > + if (!argc) > + return error("No commit on branch '%s' yet.", > + branch_name); > + else > + return error("No such branch '%s'.", branch_name); > + } > + strbuf_reset(&branch_ref); > + Of course these should be strbuf_release(). -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html