Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1716532
| From | Christian Brauner <christian.brauner@ubuntu.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 0/1 v2] binder: free memory on error |
| Date | 2017-08-21 16:20 +0200 |
| Message-ID | <ugVIB-5rU-3@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
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
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH 0/1 v2] binder: free memory on error Christian Brauner <christian.brauner@ubuntu.com> - 2017-08-21 16:20 +0200
[PATCH 1/1 v2] binder: free memory on error Christian Brauner <christian.brauner@ubuntu.com> - 2017-08-21 16:20 +0200
Re: [PATCH 1/1 v2] binder: free memory on error Dan Carpenter <dan.carpenter@oracle.com> - 2017-08-21 17:00 +0200
csiph-web