diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2014-05-26 13:39:19 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-05-26 14:02:12 -0300 |
commit | 0cc6050300b0e6b53b750e3bd017c1eca9a072dc (patch) | |
tree | 163f4b9af70c9adb4692e0754581e097d6b6bf71 /src/nvim/api/private/helpers.c | |
parent | a80a68c92747144f0094368ae01c0cb23095433c (diff) | |
download | rneovim-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.c | 1 |
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: |