[rl-poss] fix free of sqlite3_mprintf

This commit is contained in:
Timothy Stack 2020-11-29 13:46:47 -08:00
parent 900834f7c8
commit 3c0dbf3324
1 changed files with 1 additions and 1 deletions

View File

@ -272,7 +272,7 @@ void add_filter_expr_possibilities(readline_curses *rlc, int context, const std:
std::to_string(lv.lv_value.i));
break;
default: {
auto_mem<char> str;
auto_mem<char, sqlite3_free> str;
str = sqlite3_mprintf("%.*Q", lv.text_length(), lv.text_value());
rlc->add_possibility(context, type, string(str.in()));