[xiph-commits] r15318 - icecast/trunk/icecast/src

karl at svn.xiph.org karl at svn.xiph.org
Thu Sep 18 17:23:16 PDT 2008


Author: karl
Date: 2008-09-18 17:23:16 -0700 (Thu, 18 Sep 2008)
New Revision: 15318

Modified:
   icecast/trunk/icecast/src/fserve.c
Log:
prevent minor memory leak, not usually triggered


Modified: icecast/trunk/icecast/src/fserve.c
===================================================================
--- icecast/trunk/icecast/src/fserve.c	2008-09-18 22:27:24 UTC (rev 15317)
+++ icecast/trunk/icecast/src/fserve.c	2008-09-19 00:23:16 UTC (rev 15318)
@@ -299,8 +299,9 @@
                             client_tree_changed = 1;
                             continue;
                         }
-                        client_set_queue (client, refbuf->next);
-                        refbuf = client->refbuf;
+                        refbuf = refbuf->next;
+                        refbuf_release (client->refbuf);
+                        client->refbuf = refbuf;
                         bytes = refbuf->len;
                     }
                     refbuf->len = (unsigned int)bytes;



More information about the commits mailing list