mirror of
https://github.com/neovim/neovim.git
synced 2024-12-26 14:11:15 -07:00
API: Bugfix: Remove memory leak from buffer_get_line
This commit is contained in:
parent
327347e3b4
commit
cbf9564ee0
@ -60,6 +60,8 @@ String buffer_get_line(Buffer buffer, Integer index, Error *err)
|
||||
rv = slice.items[0];
|
||||
}
|
||||
|
||||
free(slice.items);
|
||||
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user