mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-09-25 06:25:13 +00:00
Fix pgsql memory occupation problem
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user