Commit 013c5ddc authored by Alice Ryhl's avatar Alice Ryhl Committed by Treehugger Robot
Browse files

ANDROID: rust_binder: fix leak of name in binderfs



The `rust_binder_new_device` method just makes a copy of the provided c
string, and does not take ownership of it. This means that there's no
reason to kmemdup the string. Also, outside of the error path, the name
is not freed.

Fixes: 0d512d37 ("ANDROID: rust_binder: add binderfs support to Rust binder")
Change-Id: I4cb63ff0c46d04da7f9debfa9896113779856c02
Signed-off-by: default avatarAlice Ryhl <aliceryhl@google.com>
parent 0dcde403
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment