decoder: fixed the issure of mem to avoid leak.

PD#150221: fixed the issure of mem to avoid leak.

Change-Id: Id1ef51e30cfab718e5e57881af5d84eb2609d1b1
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
This commit is contained in:
Nanxin Qin
2017-09-07 00:39:08 +08:00
committed by Dongjin Kim
parent 50a3479782
commit 83f60ad655

View File

@@ -8735,9 +8735,6 @@ static int vh265_stop(struct hevc_state_s *hevc)
uninit_mmu_buffers(hevc);
amhevc_disable();
vfree(hevc->fw);
hevc->fw = NULL;
kfree(gvs);
gvs = NULL;
@@ -8852,6 +8849,10 @@ static int vmh265_stop(struct hevc_state_s *hevc)
cancel_work_sync(&hevc->work);
cancel_work_sync(&hevc->notify_work);
uninit_mmu_buffers(hevc);
vfree(hevc->fw);
hevc->fw = NULL;
dump_log(hevc);
return 0;
}