mtd: parsers: afs: Fix freeing the part name memory in failure