-
Notifications
You must be signed in to change notification settings - Fork 305
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
DAOS-15717 bug: Fix memory leak cid 2555536 #14231
Conversation
- Fix mem leak for coverity 2555536 Required-githooks: true Signed-off-by: Alexander A Oganezov <[email protected]>
src/mgmt/cli_mgmt.c
Outdated
@@ -240,16 +240,19 @@ get_env_deprecated(char **val, const char *new_env, const char *old_env) | |||
D_WARN("Both %s and %s are set! Deprecated %s (%s) will be ignored\n", | |||
new_env, old_env, old_env, old); | |||
*val = new; | |||
return 0; | |||
D_GOTO(out, rc_new = 0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is rc_new not already equal to 0 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure, but in D_GOTO i prefer to set value explicitly rather than doing something like D_GOTO(out, rc_new);
Ticket title is '[coverity] 2555536 Resource leak' |
Test stage NLT on EL 8.8 completed with status UNSTABLE. https://build.hpdd.intel.com/job/daos-stack/job/daos//view/change-requests/job/PR-14231/1/testReport/ |
Test stage NLT on EL 8.8 completed with status UNSTABLE. https://build.hpdd.intel.com/job/daos-stack/job/daos//view/change-requests/job/PR-14231/2/testReport/ |
Required-githooks: true Signed-off-by: Alexander A Oganezov <[email protected]>
- Fix mem leak for coverity 2555536 Signed-off-by: Alexander A Oganezov <[email protected]>
Required-githooks: true
Before requesting gatekeeper:
Features:
(orTest-tag*
) commit pragma was used or there is a reason documented that there are no appropriate tags for this PR.Gatekeeper: