regedit: Check that we were able to allocate line_buf too.