changeset 29578:b0ee310c2216

Fix several memleaks in real_setup_and_get_header
author reimar
date Wed, 02 Sep 2009 10:20:45 +0000
parents 0ce49cb1b85b
children 26e0c6a16e57
files stream/realrtsp/real.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/stream/realrtsp/real.c	Wed Sep 02 10:10:42 2009 +0000
+++ b/stream/realrtsp/real.c	Wed Sep 02 10:20:45 2009 +0000
@@ -428,7 +428,7 @@
   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 @@
 out:
   subscribe = xbuffer_free(subscribe);
   buf = xbuffer_free(buf);
+  free(description);
+  free(session_id);
+  free(challenge1);
   return h;
 }