Fix assert/crash on desktop Linux introduced by overzealous malloc fencing

This commit is contained in:
Aaron Culliney 2016-01-03 13:01:48 -08:00
parent c89ee87bd4
commit 08a6d99334
2 changed files with 2 additions and 1 deletions

View File

@ -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))

View File

@ -303,7 +303,7 @@ void load_settings(void)
} }
} }
FREE(buffer); GETLINE_FREE(buffer);
fclose(config_file); fclose(config_file);
} }