aggreg: fix memleak