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

[BUG] Memory leak if exception is thrown #1458

Closed
maxsharabayko opened this issue Aug 11, 2020 · 0 comments · Fixed by #1459
Closed

[BUG] Memory leak if exception is thrown #1458

maxsharabayko opened this issue Aug 11, 2020 · 0 comments · Fixed by #1459
Assignees
Labels
Type: Bug Indicates an unexpected problem or unintended behavior
Milestone

Comments

@maxsharabayko
Copy link
Collaborator

As noted in the comment, PR #1393 did not handle the allocated resources properly if exception is thrown.

Consider function CUDTUnited::updateMux(..)

    m.m_pTimer = new CTimer;
    m.m_pSndQueue = new CSndQueue;
    // ..
}
catch (..)
{
    // TODO: delete m.m_pSndQueue, etc.
}
@maxsharabayko maxsharabayko added the Type: Bug Indicates an unexpected problem or unintended behavior label Aug 11, 2020
@maxsharabayko maxsharabayko added this to the v1.5.0 - Sprint 21 milestone Aug 11, 2020
@mbakholdina mbakholdina modified the milestones: v1.5.0 - Sprint 21, v1.4.2 Oct 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Indicates an unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants