|
Al Stone |
8d9267 |
This prevents a segfault when an Include file does not exist.
|
|
Al Stone |
8d9267 |
|
|
Al Stone |
8d9267 |
diff -Naur acpica-unix2-20160930/source/compiler/aslfiles.c acpica-unix2-20160930-s390/source/compiler/aslfiles.c
|
|
Al Stone |
8d9267 |
--- acpica-unix2-20160930/source/compiler/aslfiles.c 2016-09-30 10:43:56.000000000 -0600
|
|
Al Stone |
8d9267 |
+++ acpica-unix2-20160930-s390/source/compiler/aslfiles.c 2016-12-06 18:55:08.693785207 -0700
|
|
Al Stone |
8d9267 |
@@ -319,7 +319,7 @@
|
|
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 |
|