stand/fdt: Don't leak next_fdtp if we fail to open overlay
MFC after: 1 week X-MFC-With: r327991
This commit is contained in:
parent
9cd768a177
commit
67a3bb4e34
@ -383,6 +383,7 @@ fdt_apply_overlays()
|
||||
}
|
||||
rv = fdt_open_into(current_fdtp, next_fdtp, next_fdtp_size);
|
||||
if (rv != 0) {
|
||||
free(next_fdtp);
|
||||
printf("failed to open base dtb into overlay base\n");
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user