Skip to content

Issue 6245 - Fix some other coverity scan regressions #6273

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

Merged
merged 3 commits into from
Sep 9, 2024

Conversation

progier389
Copy link
Contributor

@progier389 progier389 commented Jul 24, 2024

Fixing some of the new detected issues in
https://scan6.scan.coverity.com/#/project-view/59218/11545?selectedIssue=1558490

Issue: #6245

Reviewed by: @droideck

Copy link
Member

@droideck droideck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The rest looks good!

Comment on lines 154 to 159
return NULL;
}
vals = (char **)MALLOC(sizeof(char *));
if (vals == NULL) {
FREE(vars);
return NULL;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we also free cookie before the returns?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch I missed the STRDUP.
We should also check if STRDUP fails ....

@progier389 progier389 merged commit 8331c02 into 389ds:main Sep 9, 2024
190 of 195 checks passed
@progier389 progier389 deleted the i6248-fix-covscan branch May 20, 2025 13:05
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 this pull request may close these issues.

2 participants