[GRASS-dev] Re: [GRASS-SVN] r38597 - grass/trunk/vector/v.in.ogr
neteler at osgeo.org
Sat Aug 22 03:48:49 EDT 2009
On Mon, Aug 3, 2009 at 9:25 PM, Jürgen E.<jef at norbit.de> wrote:
> On Mon, 03. Aug 2009 at 19:00:11 +0200, Markus Neteler wrote:
>> > 2009/8/3 <svn_grass at osgeo.org>:
>> >> Modified:
>> >> grass/trunk/vector/v.in.ogr/main.c
>> >> Log:
>> >> there is no G_strdup in GRASS 7
>> > should be G_strdup also included in GRASS7 or it's not necessary?
>> I guess that strdup() was changed to G_strdup() by Juergen in
>> GRASS 6 to avoid memory troubles on Windows.
>> @Juergen: is that guess correct?
> Yes. Ogr_fieldname is freed later with G_free(), so it needs to be allocated
> using a G_*() function like G_strdup().
Fixed in r38832 (GRASS 7).
More information about the grass-dev