projects
/
platform
/
upstream
/
syslinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6ce504
)
chainboot: Delete extraneous free() in chainboot_file()
author
Matt Fleming
<matt.fleming@intel.com>
Thu, 15 Nov 2012 21:32:18 +0000
(21:32 +0000)
committer
Matt Fleming
<matt.fleming@intel.com>
Thu, 15 Nov 2012 21:32:18 +0000
(21:32 +0000)
We don't need to call free(buf) if we're jumping to the 'bail' label
because 'buf' is always free'd there.
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
com32/elflink/ldlinux/chainboot.c
patch
|
blob
|
history
diff --git
a/com32/elflink/ldlinux/chainboot.c
b/com32/elflink/ldlinux/chainboot.c
index
4a4a2e1
..
ff19c53
100644
(file)
--- a/
com32/elflink/ldlinux/chainboot.c
+++ b/
com32/elflink/ldlinux/chainboot.c
@@
-54,10
+54,8
@@
void chainboot_file(const char *file, uint32_t type)
goto bail;
rv = open_file(file, &fd);
- if (rv == -1) {
- free(buf);
+ if (rv == -1)
goto bail;
- }
reg.eax.l = max;
reg.ebx.l = 0;