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:
parent
11d40f339d
commit
8d586a7b5e
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user