init: fix leak bug fix from commit 60c5ec73