summaryrefslogtreecommitdiff
path: root/utils/imxtools/sbtools/elf.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/imxtools/sbtools/elf.c')
-rw-r--r--utils/imxtools/sbtools/elf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/imxtools/sbtools/elf.c b/utils/imxtools/sbtools/elf.c
index d15c27b206..68f66107a3 100644
--- a/utils/imxtools/sbtools/elf.c
+++ b/utils/imxtools/sbtools/elf.c
@@ -333,6 +333,7 @@ void elf_simplify(struct elf_params_t *params)
333 { 333 {
334 cur_sec->size += sections[i].size; 334 cur_sec->size += sections[i].size;
335 sections[i].size = 0; // will be ignored by rebuilding (see below) 335 sections[i].size = 0; // will be ignored by rebuilding (see below)
336 free(sections[i].name);
336 } 337 }
337 else if(sections[i].type == EST_LOAD) 338 else if(sections[i].type == EST_LOAD)
338 { 339 {