commit | 22eb9476b5d80a393ac0ba235c42bccc90b82c76 | [log] [tgz] |
---|---|---|
author | Christian Brauner <christian.brauner@ubuntu.com> | Mon Aug 21 16:13:28 2017 +0200 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Tue Aug 22 18:45:07 2017 -0700 |
tree | ec539b0a38b4b6a2f38b88bbe1caba45eed3c251 | |
parent | 9e18d0c82f0c07f2a41898d4adbb698a953403ee [diff] |
binder: free memory on error On binder_init() the devices string is duplicated and smashed into individual device names which are passed along. However, the original duplicated string wasn't freed in case binder_init() failed. Let's free it on error. Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com> Cc: stable <stable@vger.kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>