]> granicus.if.org Git - libx264/commitdiff
Add missing free for nal_buffer
authorFiona Glaser <fiona@x264.com>
Tue, 13 Oct 2009 06:28:26 +0000 (23:28 -0700)
committerFiona Glaser <fiona@x264.com>
Sun, 18 Oct 2009 22:47:28 +0000 (15:47 -0700)
Fixes a memory leak.

encoder/encoder.c

index b462711ce1ea5b63593c52a7973f684585170e54..fd3d836518fbff73b2539e6e3f817021cd10bba3 100644 (file)
@@ -2335,7 +2335,7 @@ void    x264_encoder_close  ( x264_t *h )
         free( h->param.rc.psz_stat_in );
 
     x264_cqm_delete( h );
-
+    x264_free( h->nal_buffer );
     x264_analyse_free_costs( h );
 
     if( h->param.i_threads > 1)