[vlc-devel] commit: sdpplin_free() and rmff_free_header() already check for NULL. ( JP Dinger )
git version control
git at videolan.org
Wed May 20 12:02:32 CEST 2009
vlc | branch: master | JP Dinger <jpd at videolan.org> | Wed May 20 11:47:43 2009 +0200| [e3790d5aad9f50dfbd46231b4f54ec2811e5b9ca] | committer: JP Dinger
sdpplin_free() and rmff_free_header() already check for NULL.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e3790d5aad9f50dfbd46231b4f54ec2811e5b9ca
---
modules/access/rtsp/real.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules/access/rtsp/real.c b/modules/access/rtsp/real.c
index 95d48bf..b4444ec 100644
--- a/modules/access/rtsp/real.c
+++ b/modules/access/rtsp/real.c
@@ -519,13 +519,13 @@ rmff_header_t *real_parse_sdp(char *data, char **stream_rules, uint32_t bandwidt
rmff_fix_header(header);
- if( desc ) sdpplin_free( desc );
+ sdpplin_free( desc );
free( buf );
return header;
error:
- if( desc ) sdpplin_free( desc );
- if( header ) rmff_free_header( header );
+ sdpplin_free( desc );
+ rmff_free_header( header );
free( buf );
return NULL;
}
@@ -725,7 +725,7 @@ rmff_header_t *real_setup_and_get_header(rtsp_client_t *rtsp_session, int bandw
return h;
error:
- if( h ) rmff_free_header( h );
+ rmff_free_header( h );
free( challenge1 );
free( session_id );
free( description );
More information about the vlc-devel
mailing list