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

Possible memory leaks #247

Open
Bbulatov opened this issue May 15, 2024 · 0 comments
Open

Possible memory leaks #247

Bbulatov opened this issue May 15, 2024 · 0 comments
Labels

Comments

@Bbulatov
Copy link

Good day!
Testing was carried out on Linux Debian 11. As a result of static analysis, the following possible memory leaks were found:

  1. In enc.h:1275, memory is allocated for the rsasav variable, but further in the code this memory is not cleared explicitly in the function (enc.h:1570)
    изображение
    изображение
  2. In remote.c:410, memory is allocated for the httpdir variable, but further in the code this memory is not cleared in any way in the function explicitly (remote.c:471)
    изображение
    изображение
  3. In sslhelper.c:124 memory is allocated to the path variable, but after executing line 138 the memory will leak
    изображение
  4. In sslhelper.c:3196 memory is allocated to the buf variable, but after executing line 3218 the memory will leak
    изображение
  5. In user.c:589, memory is allocated to the list variable, but then after its repeated use until the end of the function, there is no cleanup. Although in a similar block, cleaning occurs before this.
    изображение
    изображение
    Please clarify whether these situations require any correction?
@Bbulatov Bbulatov added the bug label May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant