mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 06:28:35 +00:00
Use realloc instead of vim_realloc
This commit is contained in:

committed by
Thiago de Arruda

parent
580ababcb5
commit
f8432ef127
@@ -73,7 +73,7 @@ int ga_grow(garray_T *gap, int n)
|
||||
new_len = gap->ga_itemsize * (gap->ga_len + n);
|
||||
pp = (gap->ga_data == NULL)
|
||||
? alloc((unsigned)new_len)
|
||||
: vim_realloc(gap->ga_data, new_len);
|
||||
: realloc(gap->ga_data, new_len);
|
||||
|
||||
if (pp == NULL) {
|
||||
return FAIL;
|
||||
|
Reference in New Issue
Block a user