[libgda: 1/2] PostgreSQL: Fixing memory leak




commit c121191bf67da9553b26e2cb9cd0c33a37fdfbea
Author: Pavlo Solntsev <p sun fun gmail com>
Date:   Tue Jan 26 23:57:34 2021 -0600

    PostgreSQL: Fixing memory leak

 providers/postgres/gda-postgres-provider.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/providers/postgres/gda-postgres-provider.c b/providers/postgres/gda-postgres-provider.c
index c2828d1bb..a7dfc84f7 100644
--- a/providers/postgres/gda-postgres-provider.c
+++ b/providers/postgres/gda-postgres-provider.c
@@ -1040,6 +1040,7 @@ gda_postgres_provider_perform_operation (GdaServerProvider *provider, GdaConnect
                                return FALSE;
                        }
 
+                       PQclear(pg_res);
                        PQfinish (pconn);
                        return TRUE;
                }


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