mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
API: Bugfix: Remove memory leak from buffer_set_slice
This commit is contained in:
parent
0cc6050300
commit
807f940aa4
@ -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++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user