[MPlayer-cvslog] r32715 - trunk/playtreeparser.c

reimar subversion at mplayerhq.hu
Tue Dec 14 20:51:26 CET 2010


Author: reimar
Date: Tue Dec 14 20:51:26 2010
New Revision: 32715

Log:
Remove pointless NULL checks before free.

Modified:
   trunk/playtreeparser.c

Modified: trunk/playtreeparser.c
==============================================================================
--- trunk/playtreeparser.c	Tue Dec 14 20:49:03 2010	(r32714)
+++ trunk/playtreeparser.c	Tue Dec 14 20:51:26 2010	(r32715)
@@ -717,7 +717,7 @@ static int decode_nsc_base64(char *in, c
   }
   return 3 * n;
 err_out:
-  if (*buf) free(*buf);
+  free(*buf);
   *buf = NULL;
   return 0;
 }
@@ -785,8 +785,8 @@ static play_tree_t *parse_nsc(play_tree_
   play_tree_add_file(entry, url);
   free(url);
 out:
-  if (addr) free(addr);
-  if (unicast_url) free(unicast_url);
+  free(addr);
+  free(unicast_url);
   return entry;
 }
 


More information about the MPlayer-cvslog mailing list