mirror of https://github.com/thesofproject/sof.git
Testbench: Propagate fail from topology parse load widget
This patch avoids the testbench to crash when file read or write file open was not successful. E.g. invoking testbench with incorrect input file name caused a segfault. Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
This commit is contained in:
parent
24bbea3ef2
commit
5dcace1211
|
@ -555,5 +555,5 @@ finish:
|
||||||
|
|
||||||
free(temp_comp_list);
|
free(temp_comp_list);
|
||||||
fclose(file);
|
fclose(file);
|
||||||
return 0;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue