Gracefully exit.
This commit is contained in:
parent
1899debbd0
commit
9d84d76855
|
@ -152,6 +152,9 @@ int main(int argc, char *argv[])
|
|||
if(!tcbFile)
|
||||
{
|
||||
printf("Error opening %s.\n", tcbPath);
|
||||
free(tcbData);
|
||||
free(imageData.rgba);
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
fwrite(tcbData, 1, tcbLength, tcbFile);
|
||||
|
|
Loading…
Reference in New Issue