[libgda] Memory corruption error correction



commit 7c4b2b6ba5b56cd624d8943708b4cf65341a3d41
Author: Vivien Malerba <malerba gnome-db org>
Date:   Tue Dec 8 20:40:14 2009 +0100

    Memory corruption error correction

 libgda/gda-sql-builder.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/libgda/gda-sql-builder.c b/libgda/gda-sql-builder.c
index bac855a..71389bc 100644
--- a/libgda/gda-sql-builder.c
+++ b/libgda/gda-sql-builder.c
@@ -1113,7 +1113,6 @@ gda_sql_builder_select_add_target_id (GdaSqlBuilder *builder, guint id, guint ta
 guint
 gda_sql_builder_select_add_target (GdaSqlBuilder *builder, const gchar *table_name, const gchar *alias)
 {
-	gchar *tmp;
 	guint id;
 	g_return_val_if_fail (GDA_IS_SQL_BUILDER (builder), 0);
 	g_return_val_if_fail (builder->priv->main_stmt, 0);
@@ -1128,8 +1127,6 @@ gda_sql_builder_select_add_target (GdaSqlBuilder *builder, const gchar *table_na
 						   0, 
 						   gda_sql_builder_add_id (builder, 0, table_name),
 						   alias);
-	if (table_name)
-		g_free (tmp);
 	return id;
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]