Mercurial > vim
comparison src/version.c @ 15267:762fccd84b7c v8.1.0642
patch 8.1.0642: swapinfo() leaks memory
commit https://github.com/vim/vim/commit/e6fdf79980c0f2856700d4f46de700293f477429
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Dec 26 22:57:42 2018 +0100
patch 8.1.0642: swapinfo() leaks memory
Problem: swapinfo() leaks memory.
Solution: Avoid allocating the strings twice.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 26 Dec 2018 23:00:06 +0100 |
parents | a7d02a56b5d5 |
children | 27783a6f430b |
comparison
equal
deleted
inserted
replaced
15266:f4d28214c3d3 | 15267:762fccd84b7c |
---|---|
797 NULL | 797 NULL |
798 }; | 798 }; |
799 | 799 |
800 static int included_patches[] = | 800 static int included_patches[] = |
801 { /* Add new patch number below this line */ | 801 { /* Add new patch number below this line */ |
802 /**/ | |
803 642, | |
802 /**/ | 804 /**/ |
803 641, | 805 641, |
804 /**/ | 806 /**/ |
805 640, | 807 640, |
806 /**/ | 808 /**/ |