projects
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac7c5b6
)
s5pc110: fb: got a memory leakage (un-free'd malloc).
author
MyungJoo Ham
<MyungJoo.Ham@samsung.com>
Fri, 19 Feb 2010 05:32:14 +0000
(14:32 +0900)
committer
MyungJoo Ham
<MyungJoo.Ham@samsung.com>
Fri, 19 Feb 2010 05:32:14 +0000
(14:32 +0900)
This is dangerous for the sleep-wakeup in u-boot.
common/lcd.c
patch
|
blob
|
history
diff --git
a/common/lcd.c
b/common/lcd.c
index
71ddd35
..
fef17eb
100644
(file)
--- a/
common/lcd.c
+++ b/
common/lcd.c
@@
-888,8
+888,16
@@
static void *lcd_logo (void)
#endif
if (lcd_display_bitmap (addr, x, y) == 0) {
+#ifdef CONFIG_VIDEO_BMP_GZIP
+ if (addr)
+ free((void *)addr);
+#endif
return ((void *)lcd_base);
}
+#ifdef CONFIG_VIDEO_BMP_GZIP
+ if (addr)
+ free((void *)addr);
+#endif
}
#endif /* CONFIG_SPLASH_SCREEN */