summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2014-03-13 13:28:00 +0800
committerJeremy Kerr <jk@ozlabs.org>2014-04-10 11:18:25 +0800
commit6c7cf0a58b0e4be046b2367c93925e1c4895dd6c (patch)
treeb757849310eb779eb6d098af9df89880a0b96564
parent71a8c7c553ba518745c63ff646ef2677b842db5a (diff)
downloadpetitboot-6c7cf0a58b0e4be046b2367c93925e1c4895dd6c.zip
petitboot-6c7cf0a58b0e4be046b2367c93925e1c4895dd6c.tar.gz
ui/ncurses: Fix discover_client leak
We're not freeing the discover_client on exit, as it's not attached to any existing talloc context. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
-rw-r--r--ui/ncurses/nc-cui.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/ncurses/nc-cui.c b/ui/ncurses/nc-cui.c
index 3a89869..18604c9 100644
--- a/ui/ncurses/nc-cui.c
+++ b/ui/ncurses/nc-cui.c
@@ -677,6 +677,7 @@ retry_start:
}
atexit(cui_atexit);
+ talloc_steal(cui, cui->client);
cui_start();
waiter_register_io(cui->waitset, STDIN_FILENO, WAIT_IN,
OpenPOWER on IntegriCloud