Skip to content

Conversation

@progmachine
Copy link
Contributor

Bunch of memory leaks, occuring in tests.
One heap-buffer-overrun in read operation at convert.c:3162.
Two memory leaks, detected by my unit tests:
password, conn_settings, pqopt fields overwrite if their values provided by both, system config and connstring.
Restored reference counting lifetime management of COL_INFO objects.
Some minor cosmetic changes.

Bunch of memory leaks, occuring in tests.
One heap-buffer-overrun in read operation at convert.c:3162.
Two memory leaks, detected by my unit tests:
  password, conn_settings, pqopt fields overwrite if their values
  provided by both, system config and connstring.
  Restored reference counting lifetime managment of COL_INFO objects.
Some minor cosmetic changes.

Signed-off-by: Alexandr Kuznetsov <progmachine@xenlab.one>
Signed-off-by: Alexandr Kuznetsov <progmachine@xenlab.one>
Signed-off-by: Alexandr Kuznetsov <progmachine@xenlab.one>
connection.c Outdated

for (i = 0; i < self->ntables; i++)
{
{/* Going through COL_INFO cache table and releasing coli objects. */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you put comments on their own line. This is how the rest of the code is commented.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Signed-off-by: Alexandr Kuznetsov <progmachine@xenlab.one>
@davecramer davecramer merged commit 6ca29b7 into postgresql-interfaces:main May 24, 2024
@progmachine progmachine deleted the bugfix-memleaks branch May 25, 2024 18:50
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