Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RealTime分支内存泄漏问题 #49

Open
RUNCARZY opened this issue Jul 4, 2023 · 0 comments
Open

RealTime分支内存泄漏问题 #49

RUNCARZY opened this issue Jul 4, 2023 · 0 comments

Comments

@RUNCARZY
Copy link

RUNCARZY commented Jul 4, 2023

操作系统: linux
编译命令:

export C_FLAGS="-fsanitize=leak -fno-stack-protector -no-omit-frame-pointer -saditize=address -fsanitize-recover=address"
mkdir build && cd build
cmake .. -DCOMPILE_10BIT=1
make -j

编码命令:
./uAVS3_gop -f ../bin/encoder_ra.cfg -p InputFile=in.yuv -p OutputFile=out.avs3 -p threads-gop=2

编码过程中发现
存在以下内存泄露问题:

  1. 编码器avs3gop_t handle未释放
  2. utest_gop.c中SPEED_TEST开启后,main、ReadOneth_10bit中存在内存申请后未释放
  3. avs3_lib_create中对部分全局资源初始化,多次调用avs3_lib_create导致全局资源重复初始化,造成资源泄露
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant