2016-12-07 02:26:22 +00:00
|
|
|
This prevents a segfault when an Include file does not exist.
|
|
|
|
|
2017-01-10 00:43:59 +00:00
|
|
|
Index: acpica-unix2-20161222/source/compiler/aslfiles.c
|
2017-01-10 00:09:49 +00:00
|
|
|
===================================================================
|
2017-01-10 00:43:59 +00:00
|
|
|
--- acpica-unix2-20161222.orig/source/compiler/aslfiles.c
|
|
|
|
+++ acpica-unix2-20161222/source/compiler/aslfiles.c
|
2017-01-10 00:09:49 +00:00
|
|
|
@@ -319,7 +319,7 @@ FlOpenIncludeWithPrefix (
|
2016-12-07 02:26:22 +00:00
|
|
|
if (!IncludeFile)
|
|
|
|
{
|
|
|
|
fprintf (stderr, "Could not open include file %s\n", Pathname);
|
|
|
|
- ACPI_FREE (Pathname);
|
|
|
|
+ /* ACPI_FREE (Pathname); <-- forces free() segfault */
|
|
|
|
return (NULL);
|
|
|
|
}
|
|
|
|
|