You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-11-06 16:09:25 +03:00
Add memContextSwitch() missed in 5bdaa35f.
Contributed by Cynthia Shang.
This commit is contained in:
committed by
David Steele
parent
5504f286eb
commit
1e5f2713b2
@@ -333,6 +333,7 @@ walSegmentFind(const Storage *storage, const String *archiveId, const String *wa
|
||||
// Copy file name of WAL segment found into the calling context
|
||||
memContextSwitch(MEM_CONTEXT_OLD());
|
||||
result = strDup(strLstGet(list, 0));
|
||||
memContextSwitch(MEM_CONTEXT_TEMP());
|
||||
}
|
||||
}
|
||||
MEM_CONTEXT_TEMP_END();
|
||||
|
||||
Reference in New Issue
Block a user