aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/private/helpers.c
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-05-26 13:39:19 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-05-26 14:02:12 -0300
commit0cc6050300b0e6b53b750e3bd017c1eca9a072dc (patch)
tree163f4b9af70c9adb4692e0754581e097d6b6bf71 /src/nvim/api/private/helpers.c
parenta80a68c92747144f0094368ae01c0cb23095433c (diff)
downloadrneovim-0cc6050300b0e6b53b750e3bd017c1eca9a072dc.tar.gz
rneovim-0cc6050300b0e6b53b750e3bd017c1eca9a072dc.tar.bz2
rneovim-0cc6050300b0e6b53b750e3bd017c1eca9a072dc.zip
API: Bugfix: Remove memory leak from set_option_to
Diffstat (limited to 'src/nvim/api/private/helpers.c')
-rw-r--r--src/nvim/api/private/helpers.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/api/private/helpers.c b/src/nvim/api/private/helpers.c
index 206129dd78..861ac8cc1b 100644
--- a/src/nvim/api/private/helpers.c
+++ b/src/nvim/api/private/helpers.c
@@ -267,6 +267,7 @@ void set_option_to(void *to, int type, String name, Object value, Error *err)
char *val = xstrndup(value.data.string.data, value.data.string.size);
set_option_value_for(key, 0, val, opt_flags, type, to, err);
+ free(val);
}
cleanup: