|
|
4496ab |
This prevents a segfault when an Include file does not exist.
|
|
|
4496ab |
|
|
|
4496ab |
Index: acpica-unix2-20170929/source/compiler/aslfiles.c
|
|
|
4496ab |
===================================================================
|
|
|
4496ab |
--- acpica-unix2-20170929.orig/source/compiler/aslfiles.c
|
|
|
4496ab |
+++ acpica-unix2-20170929/source/compiler/aslfiles.c
|
|
|
4496ab |
@@ -318,7 +318,7 @@ FlOpenIncludeWithPrefix (
|
|
|
4496ab |
if (!IncludeFile)
|
|
|
4496ab |
{
|
|
|
4496ab |
fprintf (stderr, "Could not open include file %s\n", Pathname);
|
|
|
4496ab |
- ACPI_FREE (Pathname);
|
|
|
4496ab |
+ /* ACPI_FREE (Pathname); <-- forces free() segfault */
|
|
|
4496ab |
return (NULL);
|
|
|
4496ab |
}
|
|
|
4496ab |
|