From: Stefan Beller Date: Thu, 31 Mar 2016 23:08:02 GMT Subject: Re: [PATCHv2 4/5] submodule--helper, module_clone: always operate on absolute paths Message-ID: In-Reply-To: On Thu, Mar 31, 2016 at 3:59 PM, Stefan Beller wrote: > > Further checking reveals any caller uses it with > > desired= xstrdup(absolute_path(my_argument)); > > We are loosing memory of the strbuf here. so if I we'd > take the diff above we can also get rid of all the xstrdups > at the callers. For now I will adhere to all other callers and use > xstrdup(absolute_path(...) here too. Actually there is only two occurrences of xstrdup in builtin/clone.c