mirror of
https://github.com/haiwen/ccnet-server.git
synced 2025-08-02 05:13:32 +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)
|
if (!vstmt)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
char Stmt[256];
|
||||||
PGDBStmt *stmt = (PGDBStmt *)vstmt;
|
PGDBStmt *stmt = (PGDBStmt *)vstmt;
|
||||||
|
snprintf(Stmt, sizeof(Stmt), "DEALLOCATE \"%s\";", stmt->name);
|
||||||
|
PQclear(PQexec(stmt->db, Stmt));
|
||||||
|
|
||||||
g_free (stmt->name);
|
g_free (stmt->name);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user