In pool_free_old(), one code path was not clearing a "next" pointer,
[rsync/rsync.git] / lib / pool_alloc.c
index e1ce50b..0fb3122 100644 (file)
@@ -255,6 +255,7 @@ pool_free_old(alloc_pool_t p, void *addr)
                                cur->free -= skew;
                        }
                        next = cur->next;
+                       cur->next = NULL;
                }
        } else {
                next = cur->next;