comparison src/scriptfile.c @ 19685:d64f403289db v8.2.0399

patch 8.2.0399: various memory leaks Commit: https://github.com/vim/vim/commit/292b90d4fa11022661f449dd3efb73d5ac737313 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Mar 18 15:23:16 2020 +0100 patch 8.2.0399: various memory leaks Problem: Various memory leaks. Solution: Avoid the leaks. (Ozaki Kiichi, closes https://github.com/vim/vim/issues/5803)
author Bram Moolenaar <Bram@vim.org>
date Wed, 18 Mar 2020 15:30:04 +0100
parents 65049a682574
children ad37a198a708
comparison
equal deleted inserted replaced
19684:0b7b0650000a 19685:d64f403289db
1131 } 1131 }
1132 if (sid > 0 && ret_sid != NULL) 1132 if (sid > 0 && ret_sid != NULL)
1133 { 1133 {
1134 // Already loaded and no need to load again, return here. 1134 // Already loaded and no need to load again, return here.
1135 *ret_sid = sid; 1135 *ret_sid = sid;
1136 return OK; 1136 retval = OK;
1137 goto theend;
1137 } 1138 }
1138 #endif 1139 #endif
1139 1140
1140 // Apply SourceCmd autocommands, they should get the file and source it. 1141 // Apply SourceCmd autocommands, they should get the file and source it.
1141 if (has_autocmd(EVENT_SOURCECMD, fname_exp, NULL) 1142 if (has_autocmd(EVENT_SOURCECMD, fname_exp, NULL)