diff options
author | Joel Teichroeb <joel@teichroeb.net> | 2014-12-10 13:46:04 -0800 |
---|---|---|
committer | Joel Teichroeb <joel@teichroeb.net> | 2014-12-13 11:43:48 -0800 |
commit | e10670ac3bccbea707432bdb54e18639cf2e125f (patch) | |
tree | bac07670f8afaca3aa6fa1ae2559699141a00acf /src/nvim/ex_cmds.c | |
parent | d0dcf56338e79ad5a56515a0cf057d0c6bbfaa8d (diff) | |
download | rneovim-e10670ac3bccbea707432bdb54e18639cf2e125f.tar.gz rneovim-e10670ac3bccbea707432bdb54e18639cf2e125f.tar.bz2 rneovim-e10670ac3bccbea707432bdb54e18639cf2e125f.zip |
vim-patch:? Fix memory leak in readviminfo
Patch provided by Christian Brabandt
Improved by oni-link
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r-- | src/nvim/ex_cmds.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index 701e969393..4d9b8feb8a 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -1869,7 +1869,7 @@ int viminfo_readline(vir_T *virp) * * Check for a long line as written by viminfo_writestring(). * - * Return the string in allocated memory (or NULL to indicate failure). + * Return the string in allocated memory. */ char_u * viminfo_readstring ( @@ -1877,6 +1877,7 @@ viminfo_readstring ( int off, /* offset for virp->vir_line */ int convert /* convert the string */ ) + FUNC_ATTR_NONNULL_RET { char_u *retval; char_u *s, *d; |