-
Notifications
You must be signed in to change notification settings - Fork 238
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
fixed memory leak due to use popt incorrectly #7601
base: master
Are you sure you want to change the base?
Conversation
src/tests/test_ssh_client.c
Outdated
@@ -25,6 +25,9 @@ | |||
#error "The path to the ssh authorizedkeys helper is not defined" | |||
#endif /* SSH_CLIENT_DIR */ | |||
|
|||
#define GOTO_END(code) {return_code = code;\ | |||
goto end;} | |||
|
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.
Hi,
thank you for the fix. I would prefer if you can drop this macro and just have the two lines in all the needed places in the code. In general we try to avoid such error handling macros.
bye,
Sumit
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.
ok, thank you for review.i will fix it.
5e9e6d8
to
2f27cb4
Compare
Signed-off-by: xuraoqing <[email protected]>
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.
Hi,
thank you for the updates, ACK.
bye,
Sumit
#7589