Fix: memory leak in alloc_proxy_output_ffmpeg
Possible memory leak of `rv` due to early return without freeing the allocated memory. Part of #120767 Pull Request: https://projects.blender.org/blender/blender/pulls/121007
This commit is contained in:
committed by
Pratik Borhade
parent
c64050ecd2
commit
3f1591394a
@@ -491,6 +491,7 @@ static proxy_output_ctx *alloc_proxy_output_ffmpeg(
|
||||
|
||||
get_proxy_filepath(rv->anim, rv->proxy_size, filepath, true);
|
||||
if (!BLI_file_ensure_parent_dir_exists(filepath)) {
|
||||
MEM_freeN(rv);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user