--- quadtree/_treemodule.c.orig	2009-04-28 14:12:39.000000000 +0400
+++ quadtree/_treemodule.c	2009-04-28 14:17:27.000000000 +0400
@@ -165,7 +165,7 @@
 {
     int *hits, count=0, i;
     double min[2], max[2];
-    PyObject *list;
+    PyObject *list, *iter;
 
     if (!PyArg_ParseTuple(args, "(dddd)", &min[0], &min[1], &max[0], &max[1]))
         return NULL;
@@ -177,7 +177,11 @@
         PyList_SET_ITEM(list, (size_t)i, Py_BuildValue("i", hits[i]));
     }
     
-    return PySeqIter_New(list);
+    free(hits);
+
+    iter = PySeqIter_New(list);
+    Py_DECREF(list);
+    return iter;
 }
 
 /* Define Methods */