[libgda] GdaSqliteMeta: Fix memory leak of unused value
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] GdaSqliteMeta: Fix memory leak of unused value
- Date: Wed, 24 Apr 2019 22:32:52 +0000 (UTC)
commit fcac4c2f9e6d13674489f5a8744bd0d97e5f7bce
Author: Daniel Espinosa <esodan gmail com>
Date: Wed Apr 24 13:49:14 2019 -0500
GdaSqliteMeta: Fix memory leak of unused value
libgda/sqlite/gda-sqlite-meta.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/libgda/sqlite/gda-sqlite-meta.c b/libgda/sqlite/gda-sqlite-meta.c
index 870dd6279..c419f3aa6 100644
--- a/libgda/sqlite/gda-sqlite-meta.c
+++ b/libgda/sqlite/gda-sqlite-meta.c
@@ -1616,7 +1616,8 @@ fill_constraints_ref_model (GdaConnection *cnc, G_GNUC_UNUSED SqliteConnectionDa
}
if ((fkid == -1) || (fkid != g_value_get_int (cvalue))) {
gchar *constname;
- GValue *v2, *v3, *v4, *v5 = NULL;
+ //GValue *v2;
+ GValue *v3, *v4, *v5 = NULL;
const GValue *cv6, *cv7;
fkid = g_value_get_int (cvalue);
@@ -1635,7 +1636,7 @@ fill_constraints_ref_model (GdaConnection *cnc, G_GNUC_UNUSED SqliteConnectionDa
continue;
}
- g_value_set_string ((v2 = gda_value_new (G_TYPE_STRING)), "FOREIGN KEY");
+ //g_value_set_string ((v2 = gda_value_new (G_TYPE_STRING)), "FOREIGN KEY");
g_value_set_string ((v3 = gda_value_new (G_TYPE_STRING)), g_value_get_string
(cvalue));
g_value_set_string ((v4 = gda_value_new (G_TYPE_STRING)), "primary_key");
if (!constraint_name_n)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]