Changeset 6b90843041ecdf3ae0bde9ce27a1d8327de56f48
- 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
| rb007760 |
r6b90843 |
|
| 218 | 218 | |
|---|
| 219 | 219 | 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 | } |
|---|
| 221 | 225 | p_stream->p_sys->p_session = NULL; |
|---|
| 222 | 226 | |
|---|
| … | … | |
| 279 | 283 | { |
|---|
| 280 | 284 | msg_Err( p_stream, "no access _and_ no muxer (fatal error)" ); |
|---|
| | 285 | free( psz_url ); |
|---|
| 281 | 286 | free( p_sys ); |
|---|
| 282 | 287 | return VLC_EGENERIC; |
|---|
| … | … | |
| 371 | 376 | free( psz_access ); |
|---|
| 372 | 377 | free( psz_mux ); |
|---|
| | 378 | free( psz_url ); |
|---|
| 373 | 379 | free( p_sys ); |
|---|
| 374 | 380 | return VLC_EGENERIC; |
|---|
| … | … | |
| 386 | 392 | free( psz_access ); |
|---|
| 387 | 393 | free( psz_mux ); |
|---|
| | 394 | free( psz_url ); |
|---|
| 388 | 395 | free( p_sys ); |
|---|
| 389 | 396 | return VLC_EGENERIC; |
|---|