Fix small memleak introduced in last commit