Update of /cvsroot/monetdb/sql/src/backends/monet5
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv14076/src/backends/monet5

Modified Files:
      Tag: SQL_2-20
        sql_user.mx 
Log Message:
fixed 2 more leaks (free list and username string)


Index: sql_user.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/backends/monet5/sql_user.mx,v
retrieving revision 1.31
retrieving revision 1.31.2.1
diff -u -d -r1.31 -r1.31.2.1
--- sql_user.mx 5 Sep 2007 08:25:56 -0000       1.31
+++ sql_user.mx 29 Oct 2007 08:08:31 -0000      1.31.2.1
@@ -212,6 +212,7 @@
        /* following funcion returns a table (single column) of user names
           with the approriate scenario (sql) */
        mvc_create_func(m, s, "db_users", l, &tpe, FALSE, FALSE, "sql", 
"db_users", 1);
+       list_destroy(l);
 
        t = mvc_create_view(m, s, "users",
                        "SELECT u.\"name\" AS \"name\", "
@@ -388,6 +389,7 @@
        stack_set_string(m, "current_schema", schema);
        stack_set_string(m, "current_user", username);
        stack_set_string(m, "current_role", username);
+       GDKfree(username);
        mvc_rollback(m, 0, NULL);
        return schema;
 }


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins

Reply via email to