summaryrefslogtreecommitdiff
path: root/firmware/target/mips/ingenic_x1000
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/mips/ingenic_x1000')
-rw-r--r--firmware/target/mips/ingenic_x1000/installer-x1000.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/firmware/target/mips/ingenic_x1000/installer-x1000.c b/firmware/target/mips/ingenic_x1000/installer-x1000.c
index 48850f8a62..ef5bbcd66a 100644
--- a/firmware/target/mips/ingenic_x1000/installer-x1000.c
+++ b/firmware/target/mips/ingenic_x1000/installer-x1000.c
@@ -178,8 +178,7 @@ static void updater_cleanup(struct updater* u)
178 if(u->tar && mtar_is_open(u->tar)) 178 if(u->tar && mtar_is_open(u->tar))
179 mtar_close(u->tar); 179 mtar_close(u->tar);
180 180
181 if(u->buf_hnd >= 0) 181 core_free(u->buf_hnd);
182 core_free(u->buf_hnd);
183 182
184 if(u->ndrv) { 183 if(u->ndrv) {
185 nand_close(u->ndrv); 184 nand_close(u->ndrv);