mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-23 15:32:33 +00:00
tools: patch-image: fix file descriptor leak.
Maybe this is committed by mistake, fix it. Signed-off-by: Furong Xu <xfr@outlook.com>
This commit is contained in:
parent
30a4966053
commit
eea6df8255
@ -49,10 +49,6 @@ int main(int argc, char **argv)
|
|||||||
search_space = dtb_max_size = atoi(argv[3]);
|
search_space = dtb_max_size = atoi(argv[3]);
|
||||||
}
|
}
|
||||||
|
|
||||||
fddtb = open(argv[1], O_RDONLY);
|
|
||||||
if (!fddtb)
|
|
||||||
goto err1;
|
|
||||||
|
|
||||||
if (stat(argv[2], &s)) {
|
if (stat(argv[2], &s)) {
|
||||||
fprintf(stderr, "DTB not found\n");
|
fprintf(stderr, "DTB not found\n");
|
||||||
goto err1;
|
goto err1;
|
||||||
|
Loading…
Reference in New Issue
Block a user