Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

asan: Fix memory leak in asan by releasing global IPs when run_directly_or_daemon fails. v5.0.154, v6.0.44 #3541

Conversation

chen-guanghua
Copy link
Contributor

@chen-guanghua chen-guanghua commented May 13, 2023

  • Resolved a memory leak issue in asan when run_directly_or_daemon fails
  • Previously, global IP lists were not freed, causing asan to report memory leaks
  • Updated the code to always free global IP lists, regardless of whether run_directly_or_daemon fails or succeeds

@chen-guanghua chen-guanghua changed the title asan: when run_directly_or_daemon failed, release gloabal ips asan: Fix memory leak in asan by releasing global IPs when run_directly_or_daemon fails May 13, 2023
@chen-guanghua
Copy link
Contributor Author

Fix #3532

@chundonglinlin chundonglinlin linked an issue May 13, 2023 that may be closed by this pull request
@winlinvip winlinvip changed the title asan: Fix memory leak in asan by releasing global IPs when run_directly_or_daemon fails asan: Fix memory leak in asan by releasing global IPs when run_directly_or_daemon fails. v5.0.154, v6.0.44 May 13, 2023
@winlinvip winlinvip merged commit 0629bee into ossrs:develop May 14, 2023
winlinvip pushed a commit that referenced this pull request May 14, 2023
…ly_or_daemon fails. v5.0.154, v6.0.44 (#3541)

- Resolved a memory leak issue in asan when run_directly_or_daemon fails
- Previously, global IP lists were not freed, causing asan to report memory leaks
- Updated the code to always free global IP lists, regardless of whether run_directly_or_daemon fails or succeeds

---------

Co-authored-by: chundonglinlin <chundonglinlin@163.com>
johzzy pushed a commit to johzzy/srs that referenced this pull request Jun 26, 2023
…ly_or_daemon fails. v5.0.154, v6.0.44 (ossrs#3541)

* asan: when run_directly_or_daemon failed, release gloabal ips

* asan: refine global system ips release code

* Update release to v5.0.154, v6.0.44

---------

Co-authored-by: chundonglinlin <chundonglinlin@163.com>
@winlinvip winlinvip added the EnglishNative This issue is conveyed exclusively in English. label Jul 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
EnglishNative This issue is conveyed exclusively in English.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ERROR: LeakSanitizer: detected memory leaks
3 participants