1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-08 18:59:03 +00:00

Fix pgsql memory occupation problem

This commit is contained in:
cuihaikuo
2017-01-11 15:02:03 +08:00
parent e64aaaa162
commit 5f831a8579

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);