mirror of https://github.com/tstack/lnav.git
[rl-poss] fix free of sqlite3_mprintf
This commit is contained in:
parent
900834f7c8
commit
3c0dbf3324
|
@ -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()));
|
||||
|
|
Loading…
Reference in New Issue