projects
/
seabios.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84a4d4b
)
seabios: acpi: fix memory leak in build_srat().
author
Isaku Yamahata
<yamahata@valinux.co.jp>
Fri, 12 Feb 2010 02:36:20 +0000
(11:36 +0900)
committer
Kevin O'Connor
<kevin@koconnor.net>
Sat, 13 Feb 2010 23:07:07 +0000
(18:07 -0500)
numadata() is allocated for temporal use, but not freed.
free it.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
src/acpi.c
patch
|
blob
|
history
diff --git
a/src/acpi.c
b/src/acpi.c
index 244536a276ae360f016e58b2eefaee83654abd75..651f3a2cdb89ed4a202a09a3165b654b277d7e64 100644
(file)
--- a/
src/acpi.c
+++ b/
src/acpi.c
@@
-528,6
+528,7
@@
build_srat(void)
srat = malloc_high(srat_size);
if (!srat) {
dprintf(1, "Not enough memory for srat table!\n");
+ free(numadata);
return NULL;
}
@@
-594,6
+595,7
@@
build_srat(void)
build_header((void*)srat, SRAT_SIGNATURE, srat_size, 1);
+ free(numadata);
return srat;
}