Code rewiev 1

This commit is contained in:
german 2026-03-04 17:28:46 +04:00
parent 3b3fb364cf
commit 2f90171c30

View File

@ -39,7 +39,12 @@ int ntsys_compile_asm(char* filename, char* asm_out) {
}
rewind(fp);
while ((st = ntsys_get_str(st, fp)) != NULL) {
if (ntsys_asm_from_string(&mem_pos, st, fw) != EXIT_SUCCESS) return EXIT_FAILURE;
if (ntsys_asm_from_string(&mem_pos, st, fw) != EXIT_SUCCESS) {
free(st);
fclose(fp);
fclose(fw);
return EXIT_FAILURE;
}
}
free(st);
fclose(fp);