diff options
author | Robert Moore <Robert.Moore@intel.com> | 2014-01-17 14:33:20 -0800 |
---|---|---|
committer | Robert Moore <Robert.Moore@intel.com> | 2014-01-17 14:33:20 -0800 |
commit | 0bd944569718d7ddc8c46814fd39c0cf7941e1aa (patch) | |
tree | 7c1e6b3d3a2d22a0ee687ecab30978ed3342b469 /source | |
parent | aae576e5faefa8ba70647efa320d4747b6375f1e (diff) |
Windows OSL: fix possible memory leak in directory functions.
Free memory in error exit path.
ACPICA BZ 1065.
Diffstat (limited to 'source')
-rw-r--r-- | source/os_specific/service_layers/oswindir.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/os_specific/service_layers/oswindir.c b/source/os_specific/service_layers/oswindir.c index b283e3845..70f7ce3c2 100644 --- a/source/os_specific/service_layers/oswindir.c +++ b/source/os_specific/service_layers/oswindir.c @@ -178,6 +178,7 @@ AcpiOsOpenDirectory ( if (!FullWildcardSpec) { printf ("Could not allocate buffer for wildcard pathname\n"); + free (SearchInfo); return (NULL); } |