Fix it the right way - replace the deteriorated section of brake line. If that line has a pinhole, it is probably from the inside out due to moisture, so you can be sure you have other lines with the same problem.
Pre-bent brake lines are available from several sources and are not that expensive. It is worth the investment to do it right and not risk damage/harm to you, your car or someone else.