Changeset 5cf39390c0d9a4c9ef2860746126f0bbad3370b6
- Timestamp:
- 03/07/08 22:55:07
(3 months ago)
- Author:
- Rémi Duraffort <ivoire@videolan.org>
- git-committer:
- Rémi Duraffort <ivoire@videolan.org> 1215118507 +0200
- git-parent:
[ac217da0399df26771fec3005f4faaa65a2eb34b]
- git-author:
- Rémi Duraffort <ivoire@videolan.org> 1215033486 +0200
- Message:
Fix memleaks (corner case).
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rd17a6f2 |
r5cf3939 |
|
| 493 | 493 | if( asprintf( &psz_urlc, "%s/trackID=%d", |
|---|
| 494 | 494 | p_media->psz_rtsp_path, p_media->i_es ) < 0 ) |
|---|
| | 495 | { |
|---|
| | 496 | free( p_es ); |
|---|
| 495 | 497 | return VLC_ENOMEM; |
|---|
| | 498 | } |
|---|
| 496 | 499 | msg_Dbg( p_vod, " - ES %4.4s (%s)", (char *)&p_fmt->i_codec, psz_urlc ); |
|---|
| 497 | 500 | |
|---|
| … | … | |
| 584 | 587 | /* */ |
|---|
| 585 | 588 | if( p_64_sps && p_64_pps ) |
|---|
| | 589 | { |
|---|
| 586 | 590 | if( asprintf( &p_es->psz_fmtp, |
|---|
| 587 | 591 | "packetization-mode=1;profile-level-id=%s;" |
|---|
| 588 | 592 | "sprop-parameter-sets=%s,%s;", hexa, p_64_sps, |
|---|
| 589 | 593 | p_64_pps ) < 0 ) |
|---|
| | 594 | { |
|---|
| | 595 | free( p_64_sps ); |
|---|
| | 596 | free( p_64_pps ); |
|---|
| | 597 | free( psz_urlc ); |
|---|
| | 598 | free( p_es ); |
|---|
| 590 | 599 | return VLC_ENOMEM; |
|---|
| | 600 | } |
|---|
| | 601 | } |
|---|
| 591 | 602 | free( p_64_sps ); |
|---|
| 592 | 603 | free( p_64_pps ); |
|---|
| … | … | |
| 650 | 661 | msg_Err( p_vod, "cannot add this stream (unsupported " |
|---|
| 651 | 662 | "codec: %4.4s)", (char*)&p_fmt->i_codec ); |
|---|
| | 663 | free( psz_urlc ); |
|---|
| 652 | 664 | free( p_es ); |
|---|
| 653 | 665 | return VLC_EGENERIC; |
|---|
| r3561b9b |
r5cf3939 |
|
| 139 | 139 | free( rtsp->psz_path ); |
|---|
| 140 | 140 | vlc_mutex_destroy( &rtsp->lock ); |
|---|
| | 141 | |
|---|
| | 142 | free( rtsp ); |
|---|
| 141 | 143 | } |
|---|
| 142 | 144 | |
|---|