Patch from rob <rob@work.gb.com> to avoid freeing memory too early release_0_2_0
authoraland <aland>
Tue, 31 Jul 2001 17:35:03 +0000 (17:35 +0000)
committeraland <aland>
Tue, 31 Jul 2001 17:35:03 +0000 (17:35 +0000)
src/modules/rlm_sql/drivers/rlm_sql_postgresql/sql_postgresql.c

index 7f7a551..2600cdb 100644 (file)
@@ -289,7 +289,12 @@ int sql_free_result(SQLSOCK * sqlsocket, SQL_CONFIG *config) {
                PQclear(pg_sock->result);
                pg_sock->result = NULL;
        }
+#if 0
+       /*
+        *  Commented out because it appears to free memory too early.
+        */
        free_result_row(pg_sock);
+#endif
 
        return 0;
 }