Skip to content

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

Merged
Liryna merged 1 commit intodokan-dev:masterfrom
canardos:fix-dokancreatediskdevice-memleak
Nov 12, 2015
Merged

Remove potential memory leak in DokanCreateDiskDevice on allocation failure (resubmit)#108
Liryna merged 1 commit intodokan-dev:masterfrom
canardos:fix-dokancreatediskdevice-memleak

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