[xiph-commits] r10815 - icecast/trunk/libshout/src

msmith at svn.xiph.org msmith at svn.xiph.org
Mon Feb 13 04:13:05 PST 2006


Author: msmith
Date: 2006-02-13 04:13:01 -0800 (Mon, 13 Feb 2006)
New Revision: 10815

Modified:
   icecast/trunk/libshout/src/shout.c
Log:
Fix memory leak in authentication as reported.



Modified: icecast/trunk/libshout/src/shout.c
===================================================================
--- icecast/trunk/libshout/src/shout.c	2006-02-12 23:18:39 UTC (rev 10814)
+++ icecast/trunk/libshout/src/shout.c	2006-02-13 12:13:01 UTC (rev 10815)
@@ -312,6 +312,7 @@
 
 		rv = sock_write(socket, "GET /admin/metadata?mode=updinfo&mount=%s&%s HTTP/1.0\r\nUser-Agent: %s\r\n%s\r\n",
 		  self->mount, encvalue, shout_get_agent(self), auth ? auth : "");
+                free(auth);
 	} else
 		rv = sock_write(socket, "GET /admin.cgi?mode=updinfo&pass=%s&mount=%s&%s HTTP/1.0\r\nUser-Agent: %s\r\n\r\n",
 		  self->password, self->mount, encvalue, shout_get_agent(self));



More information about the commits mailing list