[libgda] GdaConnection: Fix memory leak at get meta store
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] GdaConnection: Fix memory leak at get meta store
- Date: Tue, 23 Apr 2019 15:16:54 +0000 (UTC)
commit 010254dee1c81480bc0e7d4685137ae8ae52f82b
Author: Daniel Espinosa <esodan gmail com>
Date: Tue Apr 23 09:00:01 2019 -0500
GdaConnection: Fix memory leak at get meta store
libgda/gda-connection.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/libgda/gda-connection.c b/libgda/gda-connection.c
index 79f9a4a5e..6a78f0e0b 100644
--- a/libgda/gda-connection.c
+++ b/libgda/gda-connection.c
@@ -5418,6 +5418,7 @@ gda_connection_get_meta_store_data_v (GdaConnection *cnc, GdaConnectionMetaType
}
parser = gda_sql_parser_new ();
stmt = gda_sql_parser_parse_string (parser, sql, NULL, error);
+ g_object_unref (parser);
if (stmt == NULL) {
g_set_error (error, GDA_SERVER_PROVIDER_ERROR, GDA_SERVER_PROVIDER_INTERNAL_ERROR,
_("Internal error while creating statement to retrieve data: %s"),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]