mirror of
https://github.com/curl/curl.git
synced 2026-08-03 23:10:35 +03:00
checksrc: detect curlx_safefree() opportunities
Follow-up tobcd0497c81#21700 Follow-up to1c3289c85e#21684 Follow-up toc0f0e400e0#5968 Follow-up to0f4a03cbb6Closes #21703
This commit is contained in:
parent
f2692b54f7
commit
419b1c0b75
3 changed files with 33 additions and 1 deletions
|
|
@ -129,6 +129,10 @@ warnings are:
|
|||
- `UNUSEDIGNORE`: a `checksrc` inlined warning ignore was asked for but not
|
||||
used, that is an ignore that should be removed or changed to get used.
|
||||
|
||||
- `USESAFEFREE`: there was a `curlx_free(var)` call made right before assigning
|
||||
NULL to `var`. We prefer replacing that with `curlx_safefree()`, which is
|
||||
doing these two operations in a single call.
|
||||
|
||||
### Extended warnings
|
||||
|
||||
Some warnings are computationally expensive to perform, so they are turned off
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue