[PATCH 5.6 161/166] mtd: phram: fix a double free issue in error path