SZEDER Gábor <[email protected]> writes: >> } else { >> - options.head_name = xstrdup("detached HEAD"); >> + free(options.head_name); >> + options.head_name = NULL; > > Please use FREE_AND_NULL(options.head_name) here.
Good; did contrib/coccinelle/free.cocci catch this?
>
>> branch_name = "HEAD";
>> }
>> if (get_oid("HEAD", &options.orig_head))
>> --
>> gitgitgadget
>>

