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? #3360

Open
QiAnXinCodeSafe opened this issue Dec 24, 2024 · 1 comment · May be fixed by #3363
Open

Memory leak? #3360

QiAnXinCodeSafe opened this issue Dec 24, 2024 · 1 comment · May be fixed by #3363

Comments

@QiAnXinCodeSafe
Copy link

Hi all,
This is Qianxin CodeSafe Team, we found a suspicious issue, allocating memory at

flagss = g_new(int, capsSetCount);

Assume that 'flagss' and NULL have different values at
if (flagss == NULL)

and entry into circulation at
for (index = 0; index < capsSetCount; index++)

Assume that the condition is ture at
if (!s_check_rem(s, 8))

this will result in a memory leak of point 'flagss"

@matt335672 matt335672 linked a pull request Dec 24, 2024 that will close this issue
@matt335672
Copy link
Member

Thanks for the report. We're looking at it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants