[GRASS-SVN] r50549 - grass/trunk/lib/vector/Vlib
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jan 30 06:11:10 EST 2012
Author: martinl
Date: 2012-01-30 03:11:10 -0800 (Mon, 30 Jan 2012)
New Revision: 50549
Modified:
grass/trunk/lib/vector/Vlib/handler.c
Log:
vlib: free allocated string in error_handler_io()
Modified: grass/trunk/lib/vector/Vlib/handler.c
===================================================================
--- grass/trunk/lib/vector/Vlib/handler.c 2012-01-30 11:08:54 UTC (rev 50548)
+++ grass/trunk/lib/vector/Vlib/handler.c 2012-01-30 11:11:10 UTC (rev 50549)
@@ -25,7 +25,7 @@
static void error_handler_io(void *p)
{
- const char *name;
+ char *name;
struct Map_info *In, *Out;
In = handler_io->In;
@@ -38,6 +38,7 @@
name = G_store(Out->name);
Vect_close(Out);
Vect_delete(name);
+ G_free(name);
}
}
More information about the grass-commit
mailing list