mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 15:08:35 +00:00
undo: pvs/v547
buf is nonnull when xfree(buf) is executed. free(NULL) is safe (for target compilers) so xfree(NULL) is also safe.
This commit is contained in:
@@ -1018,9 +1018,7 @@ static ExtmarkUndoObject *unserialize_extmark(bufinfo_T *bi, bool *error,
|
|||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (buf) {
|
|
||||||
xfree(buf);
|
xfree(buf);
|
||||||
}
|
|
||||||
|
|
||||||
return extup;
|
return extup;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user