Changeset: a8a4e3c03d46 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=a8a4e3c03d46
Modified Files:
sql/backends/monet5/sql_gencode.c
Branch: default
Log Message:
fixed crash after leak fix (give proper location to the free call)
diffs (29 lines):
diff --git a/sql/backends/monet5/sql_gencode.c
b/sql/backends/monet5/sql_gencode.c
--- a/sql/backends/monet5/sql_gencode.c
+++ b/sql/backends/monet5/sql_gencode.c
@@ -2406,21 +2406,21 @@ backend_dumpproc(backend *be, Client c,
// Always keep the SQL query around for monitoring
// if (m->history || QLOGisset()) {
{
- char *t;
+ char *t, *s;
InstrPtr q;
if ( be->q && be->q->codestring) {
- t = GDKstrdup( be->q->codestring);
+ t = s = GDKstrdup( be->q->codestring);
while( t && isspace((int) *t) )
t++;
} else {
- t = GDKstrdup("-- no query");
+ t = s = GDKstrdup("-- no query");
}
q = newStmt1(mb, "querylog", "define");
q->token = REMsymbol; // will be patched
q = pushStr(mb, q, t);
- GDKfree(t);
+ GDKfree(s);
q = pushStr(mb, q, pipe= initSQLoptimizer());
m->Tparse = 0;
GDKfree(pipe);
_______________________________________________
checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list