[libgda] SQLite Provider: fixed memory leak at statement execution



commit 68b923736682d0b118e337eccae0989ba21d0d54
Author: Daniel Espinosa <esodan gmail com>
Date:   Mon Apr 22 14:09:31 2019 -0500

    SQLite Provider: fixed memory leak at statement execution

 libgda/sqlite/gda-sqlite-provider.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/libgda/sqlite/gda-sqlite-provider.c b/libgda/sqlite/gda-sqlite-provider.c
index 208185591..7cafd5d1f 100644
--- a/libgda/sqlite/gda-sqlite-provider.c
+++ b/libgda/sqlite/gda-sqlite-provider.c
@@ -3351,6 +3351,7 @@ gda_sqlite_provider_statement_execute (GdaServerProvider *provider, GdaConnectio
                        /* create a SQLitePreparedStatement */
                        ps = _gda_sqlite_pstmt_new (GDA_SQLITE_PROVIDER (provider), sqlite_stmt);
                        gda_pstmt_set_sql (_GDA_PSTMT (ps), sql);
+      g_free (sql);
 
                        new_ps = TRUE;
                }


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