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:
Kyle Evans 2018-01-15 18:08:01 +00:00
parent 9cd768a177
commit 67a3bb4e34

View File

@ -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;
}