Fix a memory leak bug for umr tool.

2020-08-13 Thread 张二东
Hi: The function umr_pm4_decode_ring_is_halted call umr_read_ring_data to get ringdata, umr_read_ring_data will alloc memory to store ring data and return the memory pointer to umr_pm4_decode_ring_is_halted, So the memory should be free in umr_pm4_decode_ring_is_halted. Tha

Re: Fix a memory leak bug for umr tool.

2020-08-21 Thread Tom St Denis
Sorry I missed this. I've applied it (with whitespace fixes) and pushed it out to main yesterday. Cheers, Tom On Thu, Aug 13, 2020 at 10:57 PM 张二东 wrote: > Hi: >The function umr_pm4_decode_ring_is_halted call umr_read_ring_data > > to get ringdata, umr_read_ring_data will alloc mem