How to make part of bezier curve linear ?

Select the handle and change the handle type to vector (shortcut V or from the toolshelf in edit mode)