[vlc-devel] commit: Memory leak ( Rémi Denis-Courmont )

git version control git at videolan.org
Thu Sep 4 22:38:26 CEST 2008


vlc | branch: 0.9-bugfix | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sat Aug 30 19:28:05 2008 +0300| [44e1f1e870546bc14342cf4fb257510f7e102ed9] | committer: Rémi Denis-Courmont 

Memory leak
(cherry picked from commit be0af9257a84c9661b00b5effb5ddb5e356052b6)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=44e1f1e870546bc14342cf4fb257510f7e102ed9
---

 src/video_output/vout_intf.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/video_output/vout_intf.c b/src/video_output/vout_intf.c
index aabe7a2..99d67f8 100644
--- a/src/video_output/vout_intf.c
+++ b/src/video_output/vout_intf.c
@@ -664,6 +664,7 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic )
 
             do
             {
+                free( psz_filename );
                 if( asprintf( &psz_filename, "%s" DIR_SEP "%s%05d.%s",
                               val.psz_string, psz_prefix, i_num++,
                               format.psz_string ) == -1 )




More information about the vlc-devel mailing list