-
Notifications
You must be signed in to change notification settings - Fork 284
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
refactor: Factor out malloc+memcpy into memdup. #2538
Conversation
a2341b9
to
457d69c
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #2538 +/- ##
==========================================
+ Coverage 68.29% 68.35% +0.06%
==========================================
Files 118 118
Lines 28162 28165 +3
==========================================
+ Hits 19232 19252 +20
+ Misses 8930 8913 -17 ☔ View full report in Codecov by Sentry. |
we are not using |
9093887
to
374b8f1
Compare
mem isn't used in NGC very much yet. This is a follow-up PR for the other malloc-call PR and shouldn't change too much at once. I think it makes sense for mem.h to have a mem_dup function in it, later. |
3f3e0c3
to
25ded5d
Compare
7ea981b
to
d60caad
Compare
Only applied in one place, but perhaps later we can implement a pattern in tokstyle to find more opportunities for using memdup.
Only applied in one place, but perhaps later we can implement a pattern in tokstyle to find more opportunities for using memdup.
This change is