[libgda] ddl-test: fixed memory leak on postgres creator test
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] ddl-test: fixed memory leak on postgres creator test
- Date: Mon, 17 Dec 2018 22:05:15 +0000 (UTC)
commit 3bcb7b7dc9931d34032b2e53b7723ca3075a9c8c
Author: Daniel Espinosa Ortiz <esodan gmail com>
Date: Mon Dec 17 09:59:11 2018 -0600
ddl-test: fixed memory leak on postgres creator test
tests/ddl/check-ddl-creator-postgresql.c | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
---
diff --git a/tests/ddl/check-ddl-creator-postgresql.c b/tests/ddl/check-ddl-creator-postgresql.c
index dd6bb7084..57ccadb0b 100644
--- a/tests/ddl/check-ddl-creator-postgresql.c
+++ b/tests/ddl/check-ddl-creator-postgresql.c
@@ -87,6 +87,14 @@ static void create_users_table (CheckDdlObject *self) {
gda_ddl_creator_append_table (self->creator, table);
res = gda_ddl_table_create (table, self->cnc, TRUE, &error);
+
+ g_object_unref (table);
+ g_object_unref (column_id);
+ g_object_unref (column_name);
+ g_object_unref (column_ctime);
+ g_object_unref (column_ts);
+ g_object_unref (column_state);
+
if (!res) {
g_warning ("Error Creating table: %s", error->message);
}
@@ -147,6 +155,14 @@ static void create_companies_table (CheckDdlObject *self) {
gda_ddl_creator_append_table (self->creator, table);
res = gda_ddl_table_create (table, self->cnc, TRUE, &error);
+
+ g_object_unref (table);
+ g_object_unref (column_id);
+ g_object_unref (column_name);
+ g_object_unref (column_ctime);
+ g_object_unref (column_ts);
+ g_object_unref (column_state);
+
if (!res) {
g_warning ("Error Creating table: %s", error->message);
}
@@ -208,6 +224,14 @@ static void create_countries_table (CheckDdlObject *self) {
gda_ddl_creator_append_table (self->creator, table);
res = gda_ddl_table_create (table, self->cnc, TRUE, &error);
+
+ g_object_unref (table);
+ g_object_unref (column_id);
+ g_object_unref (column_name);
+ g_object_unref (column_ctime);
+ g_object_unref (column_ts);
+ g_object_unref (column_state);
+
if (!res) {
g_warning ("Error Creating table: %s", error->message);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]