Fix minor memleak