diff --git a/tools/vsh.c b/tools/vsh.c index 041113f2b4..cdd1cba81e 100644 --- a/tools/vsh.c +++ b/tools/vsh.c @@ -3093,8 +3093,9 @@ vshInitReload(vshControl *ctl) void vshDeinit(vshControl *ctl) { - if (ctl->imode) - vshReadlineDeinit(ctl); + /* NB: Don't make calling of vshReadlineDeinit conditional on active + * interactive mode. */ + vshReadlineDeinit(ctl); vshCloseLogFile(ctl); }