linedit: fix use-after-free

1 file changed