[PATCH] fix double free
Aleksey Kuleshov
rndfax at yandex.ru
Wed Aug 17 01:52:04 PDT 2016
it already gets free in bootentries_free
no need to do this in ->release method
Signed-off-by: Aleksey Kuleshov <rndfax at yandex.ru>
---
common/boot.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/common/boot.c b/common/boot.c
index a2f5a81..52e181d 100644
--- a/common/boot.c
+++ b/common/boot.c
@@ -169,7 +169,6 @@ static void bootscript_entry_release(struct bootentry *entry)
struct bootentry_script *bs = container_of(entry, struct bootentry_script, entry);
free(bs->scriptpath);
- free(bs->entry.me.display);
free(bs);
}
--
2.8.0.rc3
More information about the barebox
mailing list