mirror of
https://github.com/neovim/neovim.git
synced 2025-09-12 06:18:16 +00:00
API: Bugfix: Remove memory leak from buffer_set_slice
This commit is contained in:
@@ -217,7 +217,8 @@ void buffer_set_slice(Buffer buffer,
|
|||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Same as with replacing
|
// Same as with replacing, but we also need to free lines
|
||||||
|
free(lines[i]);
|
||||||
lines[i] = NULL;
|
lines[i] = NULL;
|
||||||
extra++;
|
extra++;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user