Skip to content

Plug few isolated memleaks that showed up during profiling#581

Merged
DimCitus merged 3 commits intohapostgres:masterfrom
gkokolatos:pg_autoctl-memcheck
Feb 5, 2021
Merged

Plug few isolated memleaks that showed up during profiling#581
DimCitus merged 3 commits intohapostgres:masterfrom
gkokolatos:pg_autoctl-memcheck

Conversation

@gkokolatos
Copy link
Copy Markdown
Collaborator

@gkokolatos gkokolatos commented Feb 4, 2021

What it says on the tin + what it seems to be a missing return in pg_setup_get_local_connection_string

@DimCitus DimCitus self-requested a review February 4, 2021 15:43
@DimCitus DimCitus added the bug Something isn't working label Feb 4, 2021
@DimCitus DimCitus added this to the Sprint 2021 W4 W5 milestone Feb 4, 2021
Copy link
Copy Markdown
Collaborator

@DimCitus DimCitus left a comment

Choose a reason for hiding this comment

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

Thanks for the clean-up job Georgios, that's highly appreciated! I think we should simply the free management in get_pgpid (free once when we know we don't use the contents directly anymore), and I wonder if we should pre-allocate the strVal in SingleValueResultContext though I would understand if we want to make that another PR.

Comment thread src/bin/pg_autoctl/monitor.c
Comment thread src/bin/pg_autoctl/pgsetup.c Outdated
@DimCitus DimCitus merged commit 959abdd into hapostgres:master Feb 5, 2021
@gkokolatos gkokolatos deleted the pg_autoctl-memcheck branch February 5, 2021 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants