[LU-10772] New static analysis issues in v2_10_58_0-102-g1a5fdde Created: 05/Mar/18 Updated: 30/Aug/23 Resolved: 06/Oct/18 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 2.11.0 |
| Fix Version/s: | Lustre 2.12.0 |
| Type: | Bug | Priority: | Major |
| Reporter: | Dmitry Eremin (Inactive) | Assignee: | Sonia Sharma (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | kw | ||
| Issue Links: |
|
||||||||
| Severity: | 3 | ||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||
| Description |
|
Found 2 new static analysis issues in v2_10_58_0-102-g1a5fdde:
The list of commits since the previous build v2_10_58_0-73-gda79fe8:
|
| Comments |
| Comment by Dmitry Eremin (Inactive) [ 05/Mar/18 ] |
|
The first issue is just a warning about redundant "if (node)" operator. static bool free_node(struct cYAML *node, void *user_data, void **out) { if (node->cy_type == CYAML_TYPE_STRING) free(node->cy_valuestring); if (node->cy_string) free(node->cy_string); if (node) free(node); return true; } |
| Comment by Peter Jones [ 05/Mar/18 ] |
|
Sonia Could you please investigate Thanks Peter |
| Comment by Oleg Drokin [ 05/Mar/18 ] |
|
I think it's better to move the check to the function start. Something like: if (!node) return true; rest of stuff |
| Comment by Gerrit Updater [ 06/Mar/18 ] |
|
Sonia Sharma (sonia.sharma@intel.com) uploaded a new patch: https://review.whamcloud.com/31537 |
| Comment by Gerrit Updater [ 06/Mar/18 ] |
|
Sonia Sharma (sonia.sharma@intel.com) uploaded a new patch: https://review.whamcloud.com/31551 |
| Comment by Gerrit Updater [ 15/Mar/18 ] |
|
Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/31551/ |
| Comment by Gerrit Updater [ 05/Oct/18 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/31537/ |
| Comment by Peter Jones [ 06/Oct/18 ] |
|
Landed for 2.12 |