storage_fs: remove some memory leaks on errors