acpica-tools/free.patch
Al Stone 51ac8fe2c8 Update to 20170929 upstream source, refresh patches
Signed-off-by: Al Stone <ahs3@redhat.com>
2017-10-06 17:13:40 -06:00

16 lines
575 B
Diff

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