mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-06 20:07:39 +08:00
Fix minor memory leaks in psql's tab completion.
Tang Haiying and Tom Lane Discussion: https://postgr.es/m/OS0PR01MB6113EA19F05E217C823B4CCAFB909@OS0PR01MB6113.jpnprd01.prod.outlook.com
This commit is contained in:
@ -1225,4 +1225,7 @@ patternToSQLRegex(int encoding, PQExpBuffer dbnamebuf, PQExpBuffer schemabuf,
|
||||
appendPQExpBufferStr(dbnamebuf, curbuf->data);
|
||||
termPQExpBuffer(curbuf);
|
||||
}
|
||||
|
||||
if (want_literal_dbname)
|
||||
termPQExpBuffer(&left_literal);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user