--- gst-plugins-base-0.10.20/gst/audiorate/gstaudiorate.c	2010-04-09 14:14:54.000000000 -0400
+++ gst-plugins-base-0.10.20/gst/audiorate/gstaudiorate.c.mod	2010-04-09 14:16:30.000000000 -0400
@@ -598,7 +598,11 @@
 
       ret = gst_pad_push (audiorate->srcpad, fill);
       if (ret != GST_FLOW_OK)
+      {
+        gst_buffer_unref (buf);
         goto beach;
+      }
+
       audiorate->out++;
       audiorate->add += cursamples;
 
