-
Notifications
You must be signed in to change notification settings - Fork 6
spaceallocator: fix Resize to properly free and allocate space #466
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
base: feature_unification
Are you sure you want to change the base?
spaceallocator: fix Resize to properly free and allocate space #466
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## feature_unification #466 +/- ##
=======================================================
+ Coverage 84.49% 84.52% +0.02%
=======================================================
Files 293 293
Lines 25025 25066 +41
Branches 3413 3417 +4
=======================================================
+ Hits 21146 21186 +40
- Misses 3879 3880 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| return err; | ||
| } | ||
|
|
||
| if (auto err = mPartition->Allocate(newSize); !err.IsNone()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if an error occurs, shouldn't SpaceAllocator::Free be called?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree. Good catch!
Signed-off-by: Mykola Solianko <mykola_solianko@epam.com>
c7a0e1d to
c010565
Compare
|
mlohvynenko
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed-by: Mykhailo Lohvynenko <mykhailo_lohvynenko@epam.com>
mykola-kobets-epam
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed-by: Mykola Kobets <mykola_kobets@epam.com>



No description provided.