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

Fix memory management in RawPacket #1667

Closed

Conversation

ol-imorozko
Copy link
Contributor

@ol-imorozko ol-imorozko commented Dec 19, 2024

Ensure that the destructor and assignment operator correctly handle the deletion of raw data based on the m_DeleteRawDataAtDestructor flag by using the updated clear() method.

Update comments to reflect these changes.

Closes #1626

Ensure that the destructor and assignment operator correctly handle the
deletion of raw data based on the m_DeleteRawDataAtDestructor flag by using
the updated clear() method.

Update comments to reflect these changes.
@ol-imorozko ol-imorozko requested a review from seladb as a code owner December 19, 2024 14:21
Copy link

codecov bot commented Dec 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.19%. Comparing base (f81ced2) to head (f0174b9).
Report is 3 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #1667      +/-   ##
==========================================
+ Coverage   83.16%   83.19%   +0.02%     
==========================================
  Files         277      277              
  Lines       48193    48111      -82     
  Branches     9966     9406     -560     
==========================================
- Hits        40081    40026      -55     
+ Misses       7234     7177      -57     
- Partials      878      908      +30     
Flag Coverage Δ
alpine320 75.16% <100.00%> (+<0.01%) ⬆️
fedora40 ?
macos-13 80.66% <100.00%> (+<0.01%) ⬆️
macos-14 80.66% <100.00%> (+<0.01%) ⬆️
macos-15 80.63% <100.00%> (+<0.01%) ⬆️
mingw32 70.87% <75.00%> (-0.05%) ⬇️
mingw64 70.83% <75.00%> (-0.05%) ⬇️
npcap 85.30% <100.00%> (-0.02%) ⬇️
rhel94 ?
ubuntu2004 58.61% <100.00%> (+<0.01%) ⬆️
ubuntu2004-zstd 58.73% <100.00%> (-0.02%) ⬇️
ubuntu2204 ?
ubuntu2204-icpx ?
ubuntu2404 75.20% <100.00%> (+<0.01%) ⬆️
unittest 83.19% <100.00%> (+0.02%) ⬆️
windows-2019 85.33% <100.00%> (-0.01%) ⬇️
windows-2022 85.36% <100.00%> (-0.01%) ⬇️
winpcap 85.33% <100.00%> (+<0.01%) ⬆️
xdp 50.54% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ol-imorozko ol-imorozko closed this by deleting the head repository Dec 26, 2024
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.

m_RawData get delete[]d in copy-operator even if m_DeleteRawDataAtDestructor is not set
1 participant