Changeset 71142c5c0b2a3faab6f07b4a801893c07c38b56e
- Timestamp:
- 06/23/08 21:57:54
(2 months ago)
- Author:
- Rémi Duraffort <ivoire@videolan.org>
- git-committer:
- Rémi Duraffort <ivoire@videolan.org> 1214251074 +0200
- git-parent:
[f3dad63031402c5f6ac2de72145420b8042728fa]
- git-author:
- Rémi Duraffort <ivoire@videolan.org> 1214251074 +0200
- Message:
Remove unneeded msg_Err and check malloc return value.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r3561b9b |
r71142c5 |
|
| 175 | 175 | |
|---|
| 176 | 176 | if( !( p_sys = calloc ( 1, sizeof( sout_access_out_sys_t ) ) ) ) |
|---|
| 177 | | { |
|---|
| 178 | | msg_Err( p_access, "not enough memory" ); |
|---|
| 179 | 177 | return VLC_ENOMEM; |
|---|
| 180 | | } |
|---|
| 181 | 178 | p_access->p_sys = p_sys; |
|---|
| 182 | 179 | |
|---|
| 183 | 180 | i_dst_port = DEFAULT_PORT; |
|---|
| 184 | 181 | char *psz_parser = psz_dst_addr = strdup( p_access->psz_path ); |
|---|
| | 182 | if( !psz_dst_addr ) |
|---|
| | 183 | { |
|---|
| | 184 | free( p_sys ); |
|---|
| | 185 | return VLC_ENOMEM; |
|---|
| | 186 | } |
|---|
| 185 | 187 | |
|---|
| 186 | 188 | if (psz_parser[0] == '[') |
|---|
| … | … | |
| 198 | 200 | if( !p_sys->p_thread ) |
|---|
| 199 | 201 | { |
|---|
| 200 | | msg_Err( p_access, "out of memory" ); |
|---|
| 201 | 202 | free (p_sys); |
|---|
| 202 | 203 | free (psz_dst_addr); |
|---|