changeset 18855:a60bcf4969c3

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)
author ben
date Thu, 29 Jun 2006 22:00:01 +0000
parents a973acb2e572
children 8f3099900d8c
files libmpdemux/librtsp/rtsp.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/librtsp/rtsp.c	Thu Jun 29 21:53:35 2006 +0000
+++ b/libmpdemux/librtsp/rtsp.c	Thu Jun 29 22:00:01 2006 +0000
@@ -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