Fix memleak on error condition