Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bcf9549c authored by Girish Mahadevan's avatar Girish Mahadevan Committed by Gerrit - the friendly Code Review server
Browse files

platform: msm: msm_bus: Fix memory leak during client unregister



Free the list of src dev pointers maintained in the client handle when the
client unregisters.

Change-Id: I746698e0cab83fd57faade8597493f09c464de80
Signed-off-by: default avatarGirish Mahadevan <girishm@codeaurora.org>
parent 1c2c6d7f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
/* Copyright (c) 2014-2015, The Linux Foundation. All rights reserved.
/* Copyright (c) 2014-2016, The Linux Foundation. All rights reserved.
 *
 * This program is Mree software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -892,6 +892,7 @@ static void unregister_client_adhoc(uint32_t cl)
	commit_data();
	msm_bus_dbg_client_data(client->pdata, MSM_BUS_DBG_UNREGISTER, cl);
	kfree(client->src_pnode);
	kfree(client->src_devs);
	kfree(client);
	handle_list.cl_list[cl] = NULL;
exit_unregister_client: