From: Junio C Hamano Date: Mon, 10 Sep 2018 16:55:30 GMT Subject: Re: [PATCH v2 10/11] builtin rebase: only store fully-qualified refs in `options.head_name` Message-ID: In-Reply-To: <20180908085207.GB10370@localhost> SZEDER Gábor 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 >>