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 (resubmit) #108

Merged
merged 1 commit into from
Nov 12, 2015
Merged

Remove potential memory leak in DokanCreateDiskDevice on allocation failure (resubmit) #108

merged 1 commit into from
Nov 12, 2015

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.

Other failure paths also fail to free these items.

Note: Resubmission of pull 107.

@Liryna
Copy link
Member

Liryna commented Nov 12, 2015

That is well seen :) ! even code analyser haven't found it!

Thank you @canardos again !

Liryna added a commit that referenced this pull request Nov 12, 2015
Remove potential memory leak in DokanCreateDiskDevice on allocation failure
@Liryna Liryna merged commit 3f33402 into dokan-dev:master Nov 12, 2015
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