[GRASS-SVN] r36328 - grass/branches/releasebranch_6_4/db/drivers/dbf
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Mar 11 05:57:11 EDT 2009
Author: marisn
Date: 2009-03-11 05:57:11 -0400 (Wed, 11 Mar 2009)
New Revision: 36328
Modified:
grass/branches/releasebranch_6_4/db/drivers/dbf/dbfexe.c
Log:
Don't use SQLPSTMT after freeing it. Fixes #400 (merge from develbranch_6 r36326)
Modified: grass/branches/releasebranch_6_4/db/drivers/dbf/dbfexe.c
===================================================================
--- grass/branches/releasebranch_6_4/db/drivers/dbf/dbfexe.c 2009-03-11 09:53:00 UTC (rev 36327)
+++ grass/branches/releasebranch_6_4/db/drivers/dbf/dbfexe.c 2009-03-11 09:57:11 UTC (rev 36328)
@@ -66,10 +66,10 @@
sqpInitParser(st);
if (yyparse() != 0) {
- sqpFreeStmt(st);
G_free(tmpsql);
append_error("SQL parser error: %s\n", st->errmsg);
append_error("in statement:\n%s\n", sql);
+ sqpFreeStmt(st);
return DB_FAILED;
}
G_free(tmpsql);
More information about the grass-commit
mailing list