diff options
| author | Anthony Liguori <aliguori@us.ibm.com> | 2012-06-18 10:18:26 -0500 |
|---|---|---|
| committer | Anthony Liguori <aliguori@us.ibm.com> | 2012-06-18 10:18:26 -0500 |
| commit | 49023ff78cf1efeb861b475c40dd04262efe61d3 (patch) | |
| tree | 4062e4d695289cb3c3424123b0624dc5216bb4ad /readline.c | |
| parent | eb2aeacf983a2a88a2b31e8fee067c38bd10abd3 (diff) | |
| parent | fc0608ac144c4b283c38ce5713bd1efa28c60018 (diff) | |
| download | focaccia-qemu-49023ff78cf1efeb861b475c40dd04262efe61d3.tar.gz focaccia-qemu-49023ff78cf1efeb861b475c40dd04262efe61d3.zip | |
Merge remote-tracking branch 'sweil/for-anthony' into staging
* sweil/for-anthony: Fix some more license versions (GPL2+ instead of GPL2) dump: Fix license version (GPL2+ instead of GPL2) configure: Fix build for some versions of glibc (9pfs) monitor: Fix memory leak with readline completion
Diffstat (limited to 'readline.c')
| -rw-r--r-- | readline.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/readline.c b/readline.c index a6c0039ad2..540cd8a025 100644 --- a/readline.c +++ b/readline.c @@ -337,6 +337,9 @@ static void readline_completion(ReadLineState *rs) } readline_show_prompt(rs); } + for (i = 0; i < rs->nb_completions; i++) { + g_free(rs->completions[i]); + } } /* return true if command handled */ |