1
0
mirror of https://gitlab.com/80486DX2-66/gists synced 2025-01-10 08:27:48 +05:30

reverse-ramdisk.c: fix fail condition after realloc

This commit is contained in:
パチュリー・ノーレッジ 2024-01-03 20:51:22 +03:00
parent 8de851ad79
commit 50a6998d59
Signed by: 80486DX2-66
GPG Key ID: 83631EF27054609B

View File

@ -150,7 +150,7 @@ int tf_free(int ID) {
// Reallocate memory for the temp_files array
temp_files = realloc(temp_files, num_temp_files * sizeof(TempFile));
if (temp_files == NULL && num_temp_files > 0) {
if (temp_files == NULL) {
line_fail(-2);
return -1;
}