diff options
Diffstat (limited to 'readline.c')
-rw-r--r-- | readline.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -474,3 +474,12 @@ ReadLineState *readline_init(Monitor *mon, return rs; } + +void readline_free(ReadLineState *rs) +{ + if (rs) { + rs->mon = NULL; + rs->completion_finder = NULL; + qemu_free(rs); + } +} |