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

git version control git at videolan.org
Sat Aug 30 18:25:55 CEST 2008


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

Memory leak

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

 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 6732d01..56ea99a 100644
--- a/src/video_output/vout_intf.c
+++ b/src/video_output/vout_intf.c
@@ -733,6 +733,7 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic )
             FILE *p_file;
             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