Changeset 6b90843041ecdf3ae0bde9ce27a1d8327de56f48

Show
Ignore:
Timestamp:
31/07/08 15:51:20 (4 months ago)
Author:
Rémi Duraffort <ivoire@videolan.org>
git-committer:
Rémi Duraffort <ivoire@videolan.org> 1217512280 +0200
git-parent:

[01e3fc39c13b1354548abfbae8eee1e9b73b4042]

git-author:
Rémi Duraffort <ivoire@videolan.org> 1217512247 +0200
Message:

Fix memleaks in stream output.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/stream_out/standard.c

    rb007760 r6b90843  
    218218 
    219219    p_sys = p_stream->p_sys = malloc( sizeof( sout_stream_sys_t) ); 
    220     if( !p_sys ) return VLC_ENOMEM; 
     220    if( !p_sys ) 
     221    { 
     222        free( psz_url ); 
     223        return VLC_ENOMEM; 
     224    } 
    221225    p_stream->p_sys->p_session = NULL; 
    222226 
     
    279283        { 
    280284            msg_Err( p_stream, "no access _and_ no muxer (fatal error)" ); 
     285            free( psz_url ); 
    281286            free( p_sys ); 
    282287            return VLC_EGENERIC; 
     
    371376        free( psz_access ); 
    372377        free( psz_mux ); 
     378        free( psz_url ); 
    373379        free( p_sys ); 
    374380        return VLC_EGENERIC; 
     
    386392        free( psz_access ); 
    387393        free( psz_mux ); 
     394        free( psz_url ); 
    388395        free( p_sys ); 
    389396        return VLC_EGENERIC;