You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-07-17 01:12:23 +02:00
Fix leak in ioFilterGroupResultAllSet().
The PackRead containing the filter results was leaked.
This commit is contained in:
@ -520,11 +520,11 @@ ioFilterGroupResultAllSet(IoFilterGroup *const this, const Pack *const filterRes
|
|||||||
|
|
||||||
if (filterResultPack != NULL)
|
if (filterResultPack != NULL)
|
||||||
{
|
{
|
||||||
PackRead *const packRead = pckReadNew(filterResultPack);
|
|
||||||
|
|
||||||
// Unpack the results into a list
|
// Unpack the results into a list
|
||||||
MEM_CONTEXT_TEMP_BEGIN()
|
MEM_CONTEXT_TEMP_BEGIN()
|
||||||
{
|
{
|
||||||
|
PackRead *const packRead = pckReadNew(filterResultPack);
|
||||||
|
|
||||||
MEM_CONTEXT_BEGIN(lstMemContext(this->filterResult))
|
MEM_CONTEXT_BEGIN(lstMemContext(this->filterResult))
|
||||||
{
|
{
|
||||||
while (!pckReadNullP(packRead))
|
while (!pckReadNullP(packRead))
|
||||||
|
Reference in New Issue
Block a user