A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/neovim/neovim/commit/d224957d30654dfa7fac7732b81f6a1b495a418b below:

nullify pointer to fix use-after-free · neovim/neovim@d224957 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+1

-1

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+1

-1

lines changed Original file line number Diff line number Diff line change

@@ -4351,7 +4351,7 @@ int build_stl_str_hl(win_T *wp, char_u *out, size_t outlen, char_u *fmt, int use

4351 4351

// Only free the string buffer if we allocated it.

4352 4352

// Note: This is not needed if `str` is pointing at `tmp`

4353 4353

if (opt == STL_VIM_EXPR) {

4354 -

xfree(str);

4354 +

XFREE_CLEAR(str);

4355 4355

}

4356 4356 4357 4357

if (num >= 0 || (!itemisflag && str && *str)) {

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4