Skip to content
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

Avoid the potential memory leak after early return. #1961

Merged
merged 1 commit into from
Nov 23, 2017

Conversation

viennadd
Copy link
Contributor

ref: #1960

Copy link
Contributor

@jforissier jforissier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the patch.

Please add a Signed-off-by: tag (see https://github.com/OP-TEE/optee_os/blob/master/documentation/github.md#contributing-1).
You can also add my:
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>

Last thing: I'd rather not mention the issue ID in the subject but rather in the commit log as a Fixes: tag.
To be clear, here is how I'd like it to look like:

tee_fs_rpc_opendir(): avoid potential memory leak after early return

Fixes: https://github.com/OP-TEE/optee_os/issues/1960
Signed-off-by: ...your name and email here...
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>

return res;

goto err_exit;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra tab, not needed. Please remove.

@viennadd viennadd changed the title fix issue #1960: Avoid the potential memory leak after early return. Avoid the potential memory leak after early return. Nov 22, 2017
@viennadd viennadd force-pushed the master branch 2 times, most recently from b3b0a4d to 989d95a Compare November 22, 2017 09:15
@jenswi-linaro
Copy link
Contributor

Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>

Fixes: OP-TEE#1960
Signed-off-by: Alex CHEN <viennadd@gmail.com>
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants