Skip to content
Snippets Groups Projects
Commit c0d2d03d authored by Kamal Agrawal's avatar Kamal Agrawal
Browse files

msm: kgsl: Fix memory leak in kgsl_ioctl_recurring_command()


Currently, profiling flag for recurring command is cleared after
adding a profiling buffer command object. When command object
destroy is called, it won't put refcount for this profiling buffer
as the flag was cleared earlier resulting in a memory leak. Clear
the profiling flag immediately after draw object creation to avoid
refcount on profiling buffer.

Change-Id: I3b56087d4e18404a19d3ffc429febdf055765f35
Signed-off-by: default avatarKamal Agrawal <quic_kamaagra@quicinc.com>
parent e5d61611
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment