[MPlayer-cvslog] r18859 - trunk/libmpdemux/librtsp/rtsp.c

ben subversion at mplayerhq.hu
Fri Jun 30 00:00:02 CEST 2006


Author: ben
Date: Fri Jun 30 00:00:01 2006
New Revision: 18859

Modified:
   trunk/libmpdemux/librtsp/rtsp.c

Log:
coverity report #179 from xine: variable "rest" not freed or pointed-to in function "rtsp_put" (see http://xine.cvs.sourceforge.net/xine/xine-lib/src/input/librtsp/rtsp.c?r1=1.19&r2=1.20)

Modified: trunk/libmpdemux/librtsp/rtsp.c
==============================================================================
--- trunk/libmpdemux/librtsp/rtsp.c	(original)
+++ trunk/libmpdemux/librtsp/rtsp.c	Fri Jun 30 00:00:01 2006
@@ -551,6 +551,7 @@
       rest=malloc(17);
       sprintf(rest,"CSeq: %u", seq);
       rtsp_put(s, rest);
+      free(rest);
       rtsp_put(s, "");
       i=read_stream(s->s, buffer, size);
     } else



More information about the MPlayer-cvslog mailing list