mirror of
https://github.com/neovim/neovim.git
synced 2025-09-09 04:48:18 +00:00
API: Bugfix: Remove memory leak from buffer_get_line
This commit is contained in:
@@ -60,6 +60,8 @@ String buffer_get_line(Buffer buffer, Integer index, Error *err)
|
|||||||
rv = slice.items[0];
|
rv = slice.items[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
free(slice.items);
|
||||||
|
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user