Skip to content

Free PQescapeIdentifier/PQescapeIdentifier after used to avoid memory leak#505

Open
harry-leq wants to merge 3 commits into2ndQuadrant:REL2_x_STABLEfrom
harry-leq:PQescape-memory-leak
Open

Free PQescapeIdentifier/PQescapeIdentifier after used to avoid memory leak#505
harry-leq wants to merge 3 commits into2ndQuadrant:REL2_x_STABLEfrom
harry-leq:PQescape-memory-leak

Conversation

@harry-leq
Copy link

  • PQescapeIdentifier/PQescapeIdentifier use malloc to allocate, which requires PQfreemem to deallocate after used.
  • Pointers are set to NULL to avoid being dangling in any cases.

@harry-leq harry-leq force-pushed the PQescape-memory-leak branch from 074bc74 to 8ae0f96 Compare November 4, 2025 16:48
@harry-leq harry-leq requested a review from nmisch November 4, 2025 18:45
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.

2 participants