1
0
mirror of https://github.com/haiwen/ccnet-server.git synced 2025-05-11 08:34:20 +00:00

Fix pgsql memory occupation problem

This commit is contained in:
cuihaikuo 2017-01-11 16:52:44 +08:00
parent 11d40f339d
commit 8d586a7b5e

View File

@ -419,7 +419,10 @@ pgsql_db_stmt_free (DBStmt *vstmt)
if (!vstmt)
return;
char Stmt[256];
PGDBStmt *stmt = (PGDBStmt *)vstmt;
snprintf(Stmt, sizeof(Stmt), "DEALLOCATE \"%s\";", stmt->name);
PQclear(PQexec(stmt->db, Stmt));
g_free (stmt->name);