Changeset 4eb79afcdc96124bfab813040e534761ac2ed99b
- Timestamp:
- 11/02/08 16:48:25
(8 months ago)
- Author:
- Jean-Paul Saman <jpsaman@videolan.org>
- git-committer:
- Jean-Paul Saman <jpsaman@videolan.org> 1202744905 +0000
- git-parent:
[2c5cd248e79197b1c2b181871946135f876c3bc9]
- git-author:
- Jean-Paul Saman <jpsaman@videolan.org> 1202744905 +0000
- Message:
Check malloc return value
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rc76522a |
r4eb79af |
|
| 32 | 32 | #include <vlc_sout.h> |
|---|
| 33 | 33 | |
|---|
| 34 | | |
|---|
| 35 | 34 | #include <vlc_network.h> |
|---|
| 36 | 35 | #include "vlc_url.h" |
|---|
| … | … | |
| 173 | 172 | if( !*val.psz_string ) free( val.psz_string ); |
|---|
| 174 | 173 | |
|---|
| 175 | | |
|---|
| 176 | 174 | var_Get( p_stream, SOUT_CFG_PREFIX "dst", &val ); |
|---|
| 177 | 175 | psz_url = *val.psz_string ? val.psz_string : NULL; |
|---|
| … | … | |
| 179 | 177 | |
|---|
| 180 | 178 | p_sys = p_stream->p_sys = malloc( sizeof( sout_stream_sys_t) ); |
|---|
| | 179 | if( !p_sys ) return VLC_ENOMEM; |
|---|
| 181 | 180 | p_stream->p_sys->p_session = NULL; |
|---|
| 182 | 181 | |
|---|
| r99fab90 |
r4eb79af |
|
| 527 | 527 | /* create a new sout input */ |
|---|
| 528 | 528 | p_input = malloc( sizeof( sout_input_t ) ); |
|---|
| | 529 | if( !p_input ) |
|---|
| | 530 | { |
|---|
| | 531 | msg_Err( p_mux, "out of memory" ); |
|---|
| | 532 | return NULL; |
|---|
| | 533 | } |
|---|
| 529 | 534 | p_input->p_sout = p_mux->p_sout; |
|---|
| 530 | 535 | p_input->p_fmt = p_fmt; |
|---|