[x264-devel] [PATCH] Fix memleak when open encoder failed
Zhao Zhili
quinkblack at foxmail.com
Tue Jan 14 03:47:21 UTC 2025
From: Zhao Zhili <zhilizhao at tencent.com>
Fix #75
---
Sorry I cannot login and send MR due to lost of accounts.
encoder/encoder.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/encoder/encoder.c b/encoder/encoder.c
index cf0da680..9221c2aa 100644
--- a/encoder/encoder.c
+++ b/encoder/encoder.c
@@ -1854,6 +1854,7 @@ x264_t *x264_encoder_open( x264_param_t *param, void *api )
return h;
fail:
+ x264_param_cleanup( &h->param );
x264_free( h );
return NULL;
}
--
2.39.3
More information about the x264-devel
mailing list