projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dfe5b1c
)
stdio: Fix memleak on stdio_deregister
author
Hans de Goede
<hdegoede@redhat.com>
Wed, 24 Sep 2014 12:06:09 +0000
(14:06 +0200)
committer
Marek Vasut
<marex@denx.de>
Tue, 4 Nov 2014 05:04:00 +0000
(06:04 +0100)
stdio_register makes a malloc-ed copy of struct stdio_dev through stdio_clone,
free the malloc-ed memory on stdio_deregister.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
common/stdio.c
patch
|
blob
|
history
diff --git
a/common/stdio.c
b/common/stdio.c
index 68c595d2d79c292e3ac9b93ae55b0b22bf0e27f0..adbfc890dd4d8ac907cd73b7e9c4a481bda6150a 100644
(file)
--- a/
common/stdio.c
+++ b/
common/stdio.c
@@
-197,6
+197,7
@@
int stdio_deregister_dev(struct stdio_dev *dev, int force)
}
list_del(&(dev->list));
+ free(dev);
/* reassign Device list */
list_for_each(pos, &(devs.list)) {