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

Commit 9e154956 authored by Abhinav Kumar's avatar Abhinav Kumar Committed by nshrivas
Browse files

qcacld-3.0: Possible mem leak in sme_set_miracast

In sme_set_miracast If mac_ptr is NULL and qdf_mem_malloc(sizeof(*val))
returns success, driver returns without qdf_mem_free for val.
This results in memory leak in sme_set_miracast.

Allocate mem for val only if mac_ptr is valid.

Change-Id: I98a6f0acc9452f7f04aa4949fc8efe21b260fac7
CRs-Fixed: 2465861
parent e744a980
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment