diff --git INSTALL INSTALL
index 007e939..2099840 100644
--- INSTALL
+++ INSTALL
@@ -12,8 +12,8 @@ without warranty of any kind.
 Basic Installation
 ==================
 
-   Briefly, the shell commands `./configure; make; make install' should
-configure, build, and install this package.  The following
+   Briefly, the shell command `./configure && make && make install'
+should configure, build, and install this package.  The following
 more-detailed instructions are generic; see the `README' file for
 instructions specific to this package.  Some packages provide this
 `INSTALL' file but do not implement all of the features documented
diff --git libgda/gda-util.c libgda/gda-util.c
index 4121999..9dd9bf4 100644
--- libgda/gda-util.c
+++ libgda/gda-util.c
@@ -1655,9 +1655,9 @@ gda_rewrite_statement_for_null_parameters (GdaStatement *stmt, GdaSet *params,
 		if (out_stmt) {
 			if (mod) {
 				*out_stmt = g_object_new (GDA_TYPE_STATEMENT, "structure", sqlst, NULL);
-				gda_sql_statement_free (sqlst);
 			}
 		}
+		gda_sql_statement_free (sqlst);
 		return mod;
 	}
 	else {
diff --git providers/mysql/gda-mysql-provider.c providers/mysql/gda-mysql-provider.c
index 4f8b856..2e329af 100644
--- providers/mysql/gda-mysql-provider.c
+++ providers/mysql/gda-mysql-provider.c
@@ -1870,6 +1870,10 @@ real_prepare (GdaServerProvider *provider, GdaConnection *cnc, GdaStatement *stm
 	/* Create prepared statement. */
 	ps = gda_mysql_pstmt_new (cnc, cdata->mysql, mysql_stmt);
 	
+    if (used_set)
+        g_slist_free(used_set);
+
+
 	if (!ps)
 		return NULL;
 	else {
@@ -2018,9 +2022,7 @@ make_last_inserted_set (GdaConnection *cnc, GdaStatement *stmt, my_ulonglong las
         GdaSqlSelectTarget *target;
         GdaSqlStatement *sql_statement = gda_sql_statement_new (GDA_SQL_STATEMENT_SELECT);
 
-	select = g_new0 (GdaSqlStatementSelect, 1);
-        GDA_SQL_ANY_PART (select)->type = GDA_SQL_ANY_STMT_SELECT;
-        sql_statement->contents = select;
+    select = sql_statement->contents;
 
 	/* FROM */
         select->from = gda_sql_select_from_new (GDA_SQL_ANY_PART (select));
@@ -2826,6 +2828,9 @@ gda_mysql_provider_statement_execute (GdaServerProvider               *provider,
 					*last_inserted_row = make_last_inserted_set (cnc, stmt, last_row);
 			}
 
+			if (event)
+				g_object_unref(event);
+
 		}
 	}
 	g_object_unref (ps);
