mirror of
https://github.com/neovim/neovim.git
synced 2024-12-26 14:11:15 -07:00
API: Bugfix: Remove memory leak from set_option_to
This commit is contained in:
parent
a80a68c927
commit
0cc6050300
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user