Commit be0af925 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Memory leak

parent 10f01e27
...@@ -733,6 +733,7 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic ) ...@@ -733,6 +733,7 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic )
FILE *p_file; FILE *p_file;
do do
{ {
free( psz_filename );
if( asprintf( &psz_filename, "%s" DIR_SEP "%s%05d.%s", if( asprintf( &psz_filename, "%s" DIR_SEP "%s%05d.%s",
val.psz_string, psz_prefix, i_num++, val.psz_string, psz_prefix, i_num++,
format.psz_string ) == -1 ) format.psz_string ) == -1 )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment