summaryrefslogtreecommitdiffstats
path: root/libhb/encx264.c
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2016-09-16 15:18:36 -0700
committerJohn Stebbins <[email protected]>2016-09-16 15:18:36 -0700
commitc18bbeaf474e638619c1b1966e5672b9563b8e89 (patch)
treec851c007f92058060c9cf22c37929cc7338c7145 /libhb/encx264.c
parentce96a7ae0903b382134c0b15fb0ce5a3e950e81e (diff)
x264: fix memory leak in 10bit encoding
Diffstat (limited to 'libhb/encx264.c')
-rw-r--r--libhb/encx264.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libhb/encx264.c b/libhb/encx264.c
index 50f7fe197..e74e4a39d 100644
--- a/libhb/encx264.c
+++ b/libhb/encx264.c
@@ -845,6 +845,7 @@ static hb_buffer_t *x264_encode( hb_work_object_t *w, hb_buffer_t *in )
pv->api->encoder_encode( pv->x264, &nal, &i_nal, &pv->pic_in, &pic_out );
if ( i_nal > 0 )
{
+ hb_buffer_close(&tmp);
return nal_encode( w, &pic_out, i_nal, nal );
}
hb_buffer_close(&tmp);