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

Remove potential memory leak in DokanCreateDiskDevice on allocation failure. #107

Closed
wants to merge 1 commit into from
Closed

Remove potential memory leak in DokanCreateDiskDevice on allocation failure. #107

wants to merge 1 commit into from

Conversation

canardos
Copy link
Contributor

The existing code assumes that if one of SymbolicLinkName DiskDeviceName or FileSystemDeviceName fails allocation, then the subsequent allocations also failed and does not free them. This may not be the case, resulting in a memory leak.

@canardos
Copy link
Contributor Author

I've noticed other failure modes in this function that also fail to properly free the DCB and potentially other structures. Closing and will resubmit with further changes

@canardos
Copy link
Contributor Author

Can't reopen due to 361, resubmitted.

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.

1 participant