Re: [PATCHv2 6/8] submodule: simplify memory handling in config parsing

2013-01-23 Thread Jens Lehmann
Am 23.01.2013 07:26, schrieb Jeff King: > We keep a strbuf for the name of the submodule, even though > we only ever add one string to it. Let's just use xmemdupz > instead, which is slightly more efficient and makes it > easier to follow what is going on. > > Unfortunately, we still end up having

[PATCHv2 6/8] submodule: simplify memory handling in config parsing

2013-01-22 Thread Jeff King
We keep a strbuf for the name of the submodule, even though we only ever add one string to it. Let's just use xmemdupz instead, which is slightly more efficient and makes it easier to follow what is going on. Unfortunately, we still end up having to deal with some memory ownership issues in some c