Fix leak when finding aliases in the log rbtree
authorJens Axboe <jaxboe@fusionio.com>
Thu, 29 Jul 2010 08:52:43 +0000 (10:52 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Thu, 29 Jul 2010 08:52:43 +0000 (10:52 +0200)
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
log.c

diff --git a/log.c b/log.c
index 5fc8f64bef4fde855d9c11e471db35f0d94778f6..80d3742f76485ff45130b6a586c6120bcd74de7f 100644 (file)
--- a/log.c
+++ b/log.c
@@ -231,6 +231,7 @@ restart:
                        assert(ipo->len == __ipo->len);
                        td->io_hist_len--;
                        rb_erase(parent, &td->io_hist_tree);
+                       free(__ipo);
                        goto restart;
                }
        }