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:
Pratik Borhade
2024-04-24 12:56:17 +02:00
committed by Pratik Borhade
parent c64050ecd2
commit 3f1591394a

View File

@@ -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;
}