diff libmpdemux/demux_rtp_codec.cpp @ 32537:8fa2f43cb760

Remove most of the NULL pointer check before free all over the code
author cboesch
date Sun, 14 Nov 2010 09:12:34 +0000
parents 4614728cab25
children a5d8b198c214
line wrap: on
line diff
--- a/libmpdemux/demux_rtp_codec.cpp	Sat Nov 13 10:23:34 2010 +0000
+++ b/libmpdemux/demux_rtp_codec.cpp	Sun Nov 14 09:12:34 2010 +0000
@@ -70,7 +70,7 @@
 
     psz += strlen(psz)+1;
     }
-    if( dup ) free( dup );
+    free( dup );
 
     return cfg;
 }