[GRASS-SVN] r36326 - grass/branches/develbranch_6/db/drivers/dbf
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Mar 11 05:36:39 EDT 2009
Author: marisn
Date: 2009-03-11 05:36:39 -0400 (Wed, 11 Mar 2009)
New Revision: 36326
Modified:
grass/branches/develbranch_6/db/drivers/dbf/dbfexe.c
Log:
Don't use SQLPSTMT after freeing it. Fixes #400
Modified: grass/branches/develbranch_6/db/drivers/dbf/dbfexe.c
===================================================================
--- grass/branches/develbranch_6/db/drivers/dbf/dbfexe.c 2009-03-11 08:59:37 UTC (rev 36325)
+++ grass/branches/develbranch_6/db/drivers/dbf/dbfexe.c 2009-03-11 09:36:39 UTC (rev 36326)
@@ -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