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:
Kamal Agrawal <quic_kamaagra@quicinc.com>
Loading
Please register or sign in to comment