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
@ -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 New Issue
Block a user