Skip to content

Commit bc95882

Browse files
leyu-yaoXinfengZhang
authored andcommitted
Fix possible memory leak
Signed-off-by: Yao, Leyu <leyu.yao@intel.com>
1 parent efbdbe5 commit bc95882

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

encode/av1encode.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2955,6 +2955,11 @@ int main(int argc, char **argv)
29552955
release_encode();
29562956
deinit_va();
29572957

2958+
//free memory
2959+
if(ips.output) free(ips.output);
2960+
if(ips.srcyuv) free(ips.srcyuv);
2961+
if(ips.recyuv) free(ips.recyuv);
2962+
29582963
TotalTicks += GetTickCount() - start;
29592964
print_performance(ips.frame_count);
29602965

0 commit comments

Comments
 (0)