diff stream/librtsp/rtsp_session.c @ 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 629b30951662
children
line wrap: on
line diff
--- a/stream/librtsp/rtsp_session.c	Sat Nov 13 10:23:34 2010 +0000
+++ b/stream/librtsp/rtsp_session.c	Sun Nov 14 09:12:34 2010 +0000
@@ -89,11 +89,11 @@
     closesocket (s->s);
   }
 
-  if (s->path) free(s->path);
-  if (s->host) free(s->host);
-  if (s->mrl) free(s->mrl);
-  if (s->session) free(s->session);
-  if (s->user_agent) free(s->user_agent);
+  free(s->path);
+  free(s->host);
+  free(s->mrl);
+  free(s->session);
+  free(s->user_agent);
   free(s->server);
   rtsp_free_answers(s);
   rtsp_unschedule_all(s);