Mercurial > vim
comparison src/version.c @ 26827:3949037c47f9 v8.2.3942
patch 8.2.3942: Coverity reports a possible memory leak
Commit: https://github.com/vim/vim/commit/8e7cc6b920ddea37deaa5e6b7b3bdfff2222d137
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Dec 30 10:32:25 2021 +0000
patch 8.2.3942: Coverity reports a possible memory leak
Problem: Coverity reports a possible memory leak.
Solution: Free the array if allocation fails.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 30 Dec 2021 11:45:03 +0100 |
parents | 3c1dcb63f579 |
children | 88a33cf5aeb6 |
comparison
equal
deleted
inserted
replaced
26826:4876191a71c0 | 26827:3949037c47f9 |
---|---|
747 NULL | 747 NULL |
748 }; | 748 }; |
749 | 749 |
750 static int included_patches[] = | 750 static int included_patches[] = |
751 { /* Add new patch number below this line */ | 751 { /* Add new patch number below this line */ |
752 /**/ | |
753 3942, | |
752 /**/ | 754 /**/ |
753 3941, | 755 3941, |
754 /**/ | 756 /**/ |
755 3940, | 757 3940, |
756 /**/ | 758 /**/ |