Hi Phillip,
On Wed, 8 Sep 2021, Phillip Wood via GitGitGadget wrote:
From: Phillip Wood <redacted>
There is already an strbuf that can be reused for creating messages.
msg is not freed if there is an error and there is a logic error where
we call strbuf_release(&msg) followed by strbuf_reset(&msg) and
strbuf_addf(&msg).
In some instances, we use a `buf` variable to construct a string that is
then assigned to a `const char *` and is used elsewhere throughout the
function. If this was the case in the code you modified, that would be a
problem.
I did verify manually that this is not the case, though, so this patch is
good to go.
Thanks,
Dscho