aboutsummaryrefslogtreecommitdiff
path: root/nor-utils/rfddump.c
diff options
context:
space:
mode:
Diffstat (limited to 'nor-utils/rfddump.c')
-rw-r--r--nor-utils/rfddump.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/nor-utils/rfddump.c b/nor-utils/rfddump.c
index 01ab4c2..d6d7f68 100644
--- a/nor-utils/rfddump.c
+++ b/nor-utils/rfddump.c
@@ -256,12 +256,10 @@ int main(int argc, char *argv[])
if (!rfd.sector_map) {
perror(PROGRAM_NAME);
close(fd);
- free(rfd.sector_map);
+ free(rfd.header);
return 2;
}
- rfd.mtd_filename = rfd.mtd_filename;
-
for (i=0; i<rfd.sector_count; i++)
rfd.sector_map[i] = -1;