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 leaks related to char* #3063

Merged
merged 5 commits into from
Dec 15, 2023

Conversation

njzjz
Copy link
Member

@njzjz njzjz commented Dec 14, 2023

Make sure no leaks reported from string_to_char by LeakSanitizer.

Most memory leaks happen only once, but DP_CHECK_OK causes 1 byte leaking every step, meaning 10 MB leaks for 10 million steps.

Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
@github-actions github-actions bot added the C label Dec 14, 2023
@njzjz njzjz changed the title fix memory leaks in string_to_char fix memory leaks related to char* Dec 14, 2023
Copy link

codecov bot commented Dec 14, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (0547940) 75.73% compared to head (fbe7d94) 75.77%.
Report is 12 commits behind head on devel.

Additional details and impacted files
@@            Coverage Diff             @@
##            devel    #3063      +/-   ##
==========================================
+ Coverage   75.73%   75.77%   +0.03%     
==========================================
  Files         245      245              
  Lines       24685    24893     +208     
  Branches     1591     1596       +5     
==========================================
+ Hits        18696    18862     +166     
- Misses       5054     5093      +39     
- Partials      935      938       +3     

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

@wanghan-iapcm wanghan-iapcm merged commit 18902be into deepmodeling:devel Dec 15, 2023
42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants