"tanghy.f...@fujitsu.com" <tanghy.f...@fujitsu.com> writes: > I think 02b8048 forgot to free some used memory. > Attached a tiny patch to fix it. Please have a check.
Right you are. Inspired by that, I tried running some tab-completion operations under valgrind, and found another nearby leak in patternToSQLRegex. Fixes pushed. regards, tom lane