mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fixed memory leak in FDT overlay handling code
Free both overlay and new fdt before returning after fdt_open_into error PR: 209634 Submitted by: David Binderman
This commit is contained in:
parent
c76f604ee9
commit
05eb95f283
1 changed files with 2 additions and 0 deletions
|
|
@ -383,6 +383,8 @@ fdt_apply_overlays()
|
|||
rv = fdt_open_into(fdtp, new_fdtp, new_fdtp_size);
|
||||
if (rv != 0) {
|
||||
printf("failed to open DTB blob for applying overlays\n");
|
||||
free(new_fdtp);
|
||||
free(overlay);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue