1
0
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:
Cynthia Shang
2019-04-03 16:40:19 +01:00
committed by David Steele
parent 5504f286eb
commit 1e5f2713b2

View File

@@ -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();