mirror of
https://github.com/mauiaaron/apple2.git
synced 2024-11-20 02:32:28 +00:00
Fix assert/crash on desktop Linux introduced by overzealous malloc fencing
This commit is contained in:
parent
c89ee87bd4
commit
08a6d99334
@ -23,6 +23,7 @@
|
|||||||
|
|
||||||
#define ASPRINTF_FREE(ptr) _FREE((ptr), free)
|
#define ASPRINTF_FREE(ptr) _FREE((ptr), free)
|
||||||
#define STRDUP_FREE(ptr) _FREE((ptr), free)
|
#define STRDUP_FREE(ptr) _FREE((ptr), free)
|
||||||
|
#define GETLINE_FREE(ptr) _FREE((ptr), free)
|
||||||
|
|
||||||
#ifdef NDEBUG
|
#ifdef NDEBUG
|
||||||
# define MALLOC(size) malloc((size))
|
# define MALLOC(size) malloc((size))
|
||||||
|
@ -303,7 +303,7 @@ void load_settings(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
FREE(buffer);
|
GETLINE_FREE(buffer);
|
||||||
|
|
||||||
fclose(config_file);
|
fclose(config_file);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user