aboutsummaryrefslogtreecommitdiff
path: root/clint.py
diff options
context:
space:
mode:
authorNicolas Hillegeer <nicolas@hillegeer.com>2014-05-31 19:07:38 +0200
committerJustin M. Keyes <justinkz@gmail.com>2014-06-12 01:41:03 -0400
commitebbd87b0be22405c82f2d1dc662241aa284f1622 (patch)
treedbf5c4ff03b9679a7ef4637cf413e8ce7f7ffcb3 /clint.py
parent731761715a89d10b45c0a96340b55e071fe80b20 (diff)
downloadrneovim-ebbd87b0be22405c82f2d1dc662241aa284f1622.tar.gz
rneovim-ebbd87b0be22405c82f2d1dc662241aa284f1622.tar.bz2
rneovim-ebbd87b0be22405c82f2d1dc662241aa284f1622.zip
coverity/62615: fix leak in write_reg_contents_ex
Coverity detected a memory leak caused by not free'ing the value returned by get_expr_line_src (basically vim_strsave(expr_line)). Replaced the copying with direct manipulation of expr_line, since that also happens in other parts of the codebase. NOTE: I'm aware that this has different behaviour than vim_strnsave, namely vim_strnsave always allocates `len` bytes, even if the string is shorter. I don't see how that behaviour is helpful here though.
Diffstat (limited to 'clint.py')
0 files changed, 0 insertions, 0 deletions