Skip to content

Conversation

@hlinnaka
Copy link
Contributor

@hlinnaka hlinnaka commented Feb 9, 2022

@hlinnaka hlinnaka requested a review from arssher February 9, 2022 22:45
@arssher
Copy link

arssher commented Feb 10, 2022

ISTM it would be simpler to do free inside libpqprop_async_read, having the guarantee that the result lives until the next call, like libpqwalreceiver does, but ok.

@hlinnaka hlinnaka force-pushed the fix-safekeeper-response-leak branch from 6150756 to cce6877 Compare February 10, 2022 06:28
@hlinnaka
Copy link
Contributor Author

ISTM it would be simpler to do free inside libpqprop_async_read, having the guarantee that the result lives until the next call, like libpqwalreceiver does, but ok.

Makes sense, I rewrote it that way.

@hlinnaka hlinnaka requested a review from arssher February 10, 2022 06:29
@hlinnaka hlinnaka force-pushed the fix-safekeeper-response-leak branch from cce6877 to e056fb6 Compare February 10, 2022 09:27
hlinnaka added a commit to neondatabase/neon that referenced this pull request Feb 10, 2022
@hlinnaka hlinnaka merged commit e056fb6 into main Feb 10, 2022
@hlinnaka hlinnaka deleted the fix-safekeeper-response-leak branch February 10, 2022 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PQgetCopyData result is never freed in walproposer

3 participants