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

PAM: fix issue found by Coverity #7792

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alexey-tikhonov
Copy link
Member

1614            D(("Illegal task [%#x]", task));
       9. out_of_scope: Variable buf goes out of scope.

CID 530049: (#1 of 1): Resource leak (RESOURCE_LEAK)
10. leaked_storage: Variable rd going out of scope leaks the storage rd.data points to.
1615            return PAM_SYSTEM_ERR;
1616    }

```
1614            D(("Illegal task [%#x]", task));
       9. out_of_scope: Variable buf goes out of scope.

CID 530049: (#1 of 1): Resource leak (RESOURCE_LEAK)
10. leaked_storage: Variable rd going out of scope leaks the storage rd.data points to.
1615            return PAM_SYSTEM_ERR;
1616    }
```
@justin-stephenson
Copy link
Contributor

I checked the coverity scan webUI and 'View Defects' does show this error. So let's wait to see if this covscan run triggered in this PR fixes this error (CID 530049)

image

@justin-stephenson
Copy link
Contributor

Covscan logs show:

The build submission quota for this project has been reached. Next submission permitted on or after 2025-Jan-14 2:31 PM UTC

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

Successfully merging this pull request may close these issues.

3 participants