1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-02-21 19:48:29 +02:00

Fix leak in protocolServer().

This commit is contained in:
David Steele 2023-01-12 14:24:20 +07:00
parent 9d42435ffb
commit 6ec2241e15

View File

@ -442,8 +442,9 @@ protocolServer(IoServer *const tlsServer, IoSession *const socketSession)
// Ack the config command
protocolServerDataEndPut(result);
ioSessionMove(tlsSession, memContextPrior());
// Move result to prior context and move session into result so there is only one return value
protocolServerMove(result, memContextPrior());
ioSessionMove(tlsSession, objMemContext(result));
}
// Else the client can only detect that the server is alive
else