[PATCH 0/1 v2] binder: free memory on error
From: Christian Brauner
Date: Mon Aug 21 2017 - 10:13:41 EST
On binder_init() the devices string is duplicated and smashed into individual
device names which are passed along. However, if I'm not mistaken the original
duplicated string wasn't freed in case binder_init() failed.
Christian
Changelog v2 2017-08-21 (Thanks Dan!)
- use more descriptive commit message
- call kfree(device_names) on correct position
Christian Brauner (1):
binder: free memory on error
drivers/android/binder.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
--
2.13.3