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

memory leak spotted in mod_verto.c #2344

Open
Architjain128 opened this issue Dec 22, 2023 · 0 comments
Open

memory leak spotted in mod_verto.c #2344

Architjain128 opened this issue Dec 22, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Architjain128
Copy link

Describe the bug

  • Memory leak spotted in mod_verto.c
  • the memory is allocated to re in switch_regex_perform used at http_run in mod_verto.c but was never freed

Package version or git hash

  • Version 1.10.10

Trace logs
these are the logs by running fs via Valgrind

==1097== 22,808 bytes in 187 blocks are definitely lost in loss record 185 of 195
==1097==    at 0x48407B4: malloc (vg_replace_malloc.c:381)
==1097==    by 0x5109983: pcre_compile2 (in /usr/lib/x86_64-linux-gnu/libpcre.so.3.13.3)
==1097==    by 0x49588E7: switch_regex_perform (switch_regex.c:98)
==1097==    by 0xA1A2534: http_run (mod_verto.c:1909)
==1097==    by 0xA1A2534: client_run (mod_verto.c:2005)
==1097==    by 0xA1A2C2C: client_thread (mod_verto.c:2181)
==1097==    by 0x48DBD26: switch_core_session_thread_pool_worker (switch_core_session.c:1791)
==1097==    by 0x4D8A043: start_thread (pthread_create.c:442)
==1097==    by 0x4E0987F: clone (clone.S:100)
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

No branches or pull requests

1 participant