Skip to content

Issue 6245 - Fix some other coverity scan regressions#6273

Merged
progier389 merged 3 commits into
389ds:mainfrom
progier389:i6248-fix-covscan
Sep 9, 2024
Merged

Issue 6245 - Fix some other coverity scan regressions#6273
progier389 merged 3 commits into
389ds:mainfrom
progier389:i6248-fix-covscan

Conversation

@progier389

@progier389 progier389 commented Jul 24, 2024

Copy link
Copy Markdown
Contributor

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

Issue: #6245

Reviewed by: @droideck

@droideck droideck left a comment

Copy link
Copy Markdown
Member

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 thread lib/libadmin/util.c
Comment on lines +154 to +159
return NULL;
}
vals = (char **)MALLOC(sizeof(char *));
if (vals == NULL) {
FREE(vars);
return NULL;

Copy link
Copy Markdown
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
Copy Markdown
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
@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