Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#10065] YSQL: Fix memory leaks in Ysql Connection Manager
Summary: This diff fixes memory leaks in Ysql Connection Manager which were caused due to following reasons: # In upstream odyssey io object of a client is never deallocated when client is free, so it is explicitly made to free. # In connection manager while reading the packet from socket during authentication (in yb_auth_passthrough.c), a machine msg object is created which is not set free after it's purpose, so explicitly making it in this diff. # Memory allocated to store the name of guc variable (in var.h) is never released, it is fixed by doing automatic allocation on stack so it is released automatically as it goes out of scope. Jira: DB-8241 Test Plan: # All Ysql Connection Manager Tests are passing. # Ensured any long running app in yb-stress-test doesn't causes ysql conn mgr's memory to grow continuously while app is running, rather after some point of time it gets stabilized. Reviewers: janand, nkumar, rbarigidad Reviewed By: janand, rbarigidad Subscribers: rbarigidad, nkumar, mihnea, yql Differential Revision: https://phorge.dev.yugabyte.com/D33190
- Loading branch information
Manav Kumar
committed
Apr 22, 2024
1 parent
687d25f
commit 811e578
Showing
6 changed files
with
41 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters