Re: Re: Is there a memory leak in commit 8561e48?

2018-04-19 Thread jian.l...@i-soft.com.cn
stack"), errhint("Check for missing \"SPI_finish\" calls."))); + if (_SPI_stack) + pfree(_SPI_stack); From: Michael Paquier Date: 2018-04-20 08:49 To: Postgres hackers CC: Peter Eisentraut; Andrew Dunstan; jian.l...@i-soft.com.cn Subject: Re: Is

Is there a memory leak in commit 8561e48?

2018-04-18 Thread jian.l...@i-soft.com.cn
in commit 8561e48, _SPI_stack alloc from TopMemoryContext. But AtEOXact_SPI just set _SPI_stack = NULL. Is this a memory leak?