[MPlayer-cvslog] r29620 - trunk/stream/realrtsp/real.c

reimar subversion at mplayerhq.hu
Wed Sep 2 12:20:45 CEST 2009


Author: reimar
Date: Wed Sep  2 12:20:45 2009
New Revision: 29620

Log:
Fix several memleaks in real_setup_and_get_header

Modified:
   trunk/stream/realrtsp/real.c

Modified: trunk/stream/realrtsp/real.c
==============================================================================
--- trunk/stream/realrtsp/real.c	Wed Sep  2 12:10:42 2009	(r29619)
+++ trunk/stream/realrtsp/real.c	Wed Sep  2 12:20:45 2009	(r29620)
@@ -428,7 +428,7 @@ rmff_header_t *real_setup_and_get_header
   char *description=NULL;
   char *session_id=NULL;
   rmff_header_t *h = NULL;
-  char *challenge1;
+  char *challenge1 = NULL;
   char challenge2[41];
   char checksum[9];
   char *subscribe = NULL;
@@ -617,6 +617,9 @@ autherr:
 out:
   subscribe = xbuffer_free(subscribe);
   buf = xbuffer_free(buf);
+  free(description);
+  free(session_id);
+  free(challenge1);
   return h;
 }
 


More information about the MPlayer-cvslog mailing list