0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

patch 8.2.4354: dynamic loading of libsodium not handled properly

Problem:    Dynamic loading of libsodium not handled properly.
Solution:   Fix has() and :version. Show an error message when loading fails.
            Fix memory leaks. (Ken Takata, closes #9754)
This commit is contained in:
K.Takata
2022-02-12 11:18:37 +00:00
committed by Bram Moolenaar
parent 18f7593e57
commit d68b2fc034
8 changed files with 79 additions and 31 deletions

View File

@@ -1371,10 +1371,7 @@ cs_insert_filelist(
char *winmsg = GetWin32Error();
if (winmsg != NULL)
{
(void)semsg(cant_msg, winmsg);
LocalFree(winmsg);
}
else
// subst filename if can't get error text
(void)semsg(cant_msg, fname);