Skip to content

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

Closed
canardos wants to merge 1 commit intodokan-dev:masterfrom
canardos:fix-dokancreatediskdevice-memleak
Closed

Remove potential memory leak in DokanCreateDiskDevice on allocation failure.#107
canardos wants to merge 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.

@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