diff options
Diffstat (limited to 'source/tools/acpisrc/asfile.c')
-rw-r--r-- | source/tools/acpisrc/asfile.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/tools/acpisrc/asfile.c b/source/tools/acpisrc/asfile.c index 5cea1247d0735..257e2ab06ae9a 100644 --- a/source/tools/acpisrc/asfile.c +++ b/source/tools/acpisrc/asfile.c @@ -759,7 +759,7 @@ AsGetFile ( { printf ("Could not read the input file %s (%u bytes)\n", Filename, Size); - goto ErrorExit; + goto ErrorFree; } Buffer [Size] = 0; /* Null terminate the buffer */ @@ -779,6 +779,8 @@ AsGetFile ( *FileSize = Size; return (0); +ErrorFree: + free (Buffer); ErrorExit: |