diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2014-03-12 14:22:47 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2014-04-08 16:00:38 +0800 |
commit | 28926a0e2f144b09ac9e0a4d019c7f649fd9d5c1 (patch) | |
tree | 7d0371606513ec81b972870e86946da93de32db2 /COPYING | |
parent | bc72527a1426c2159112707d3a6c9bb544fd6647 (diff) | |
download | talos-petitboot-28926a0e2f144b09ac9e0a4d019c7f649fd9d5c1.tar.gz talos-petitboot-28926a0e2f144b09ac9e0a4d019c7f649fd9d5c1.zip |
ui/ncurses: Don't free item in pmenu_item_setup
Currently pmenu_item_setup may free its item parameter on error.
This makes it non-obvious whether the item is still allocated on exit to
the caller.
Instead, this change removes the talloc_free, and requires that the
caller do this on error. This makes the potential use-after-free in
cui_boot_editor_on_exit obvious, so we fix that too.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions