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

Commit d325bc29 authored by Jeya R's avatar Jeya R
Browse files

msm: adsprpc: fix memory leak in fastrpc_file_free



Free memory allocated to dev_pm_qos_req when session allocation fails.

Change-Id: Ic6cd872b835de2956bf6c7752a06a39a6419993c
Acked-by: default avatarNishant Chaubey <chaubey@qti.qualcomm.com>
Signed-off-by: default avatarJeya R <jeyr@codeaurora.org>
parent e4d3a647
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -5072,6 +5072,7 @@ static int fastrpc_file_free(struct fastrpc_file *fl)
	kfree(fl->gidlist.gids);

	if (!fl->sctx) {
		kfree(fl->dev_pm_qos_req);
		kfree(fl);
		return 0;
	}