Skip to content

Commit

Permalink
rimage: fix resource leak in err handling
Browse files Browse the repository at this point in the history
Fix resource leak in man_module_create_reloc

Signed-off-by: Adrian Bonislawski <[email protected]>
  • Loading branch information
abonislawski committed Dec 19, 2024
1 parent e1b14fd commit 45fba10
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/rimage/src/manifest.c
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,7 @@ static int man_module_create_reloc(struct image *image, struct manifest_module *

if (j == image->adsp->modules->mod_man_count) {
fprintf(stderr, "error: cannot find %s in manifest.\n", name);
elf_section_free(&section);
return -ENOEXEC;
}
}
Expand Down

0 comments on commit 45fba10

Please sign in to comment.