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