[xiph-commits] r8208 - icecast/branches/kh/icecast/src

karl at motherfish-iii.xiph.org karl at motherfish-iii.xiph.org
Tue Nov 16 06:15:21 PST 2004


Author: karl
Date: 2004-11-16 06:15:20 -0800 (Tue, 16 Nov 2004)
New Revision: 8208

Modified:
   icecast/branches/kh/icecast/src/fserve.c
   icecast/branches/kh/icecast/src/xslt.c
Log:
fix fd/mem leak case, and use correct xslt api


Modified: icecast/branches/kh/icecast/src/fserve.c
===================================================================
--- icecast/branches/kh/icecast/src/fserve.c	2004-11-16 05:19:46 UTC (rev 8207)
+++ icecast/branches/kh/icecast/src/fserve.c	2004-11-16 14:15:20 UTC (rev 8208)
@@ -466,6 +466,7 @@
     bytes = sock_write(httpclient->con->sock,
             "HTTP/1.0 416 Request Range Not Satisfiable\r\n\r\n");
     if(bytes > 0) httpclient->con->sent_bytes = bytes;
+    fserve_client_destroy (httpclient);
     return -1;
 }
 

Modified: icecast/branches/kh/icecast/src/xslt.c
===================================================================
--- icecast/branches/kh/icecast/src/xslt.c	2004-11-16 05:19:46 UTC (rev 8207)
+++ icecast/branches/kh/icecast/src/xslt.c	2004-11-16 14:15:20 UTC (rev 8208)
@@ -169,7 +169,7 @@
 
     res = xsltApplyStylesheet(cur, doc, NULL);
 
-    xmlDocDumpFormatMemory (res, &string, &len, 1);
+    xsltSaveResultToString (&string, &len, res, cur);
     if (string)
     {
         client_send_bytes (client, string, len);



More information about the commits mailing list