Fix wrong munmap

This commit is contained in:
Vladimir Serbinenko 2020-03-06 02:24:10 +01:00
parent 03ce4725c2
commit c5c67078dd

View File

@ -40,7 +40,7 @@ void tdisk_finish() {
for (i = 0; i < 4; i++) {
if (!tdisks[i].image)
continue;
munmap(tdisks[i].image, tdisks[i].length);
if (tdisks[i].length > 0) free(tdisks[i].image);
}
}