plug memleak on init failure