Sync with upstream
commit7c66c5b60244433c8224dbe3454399c4f6948c0c
authormalc <moosotc@gmail.com>
Tue, 12 Jul 2016 17:26:20 +0000 (12 20:26 +0300)
committermalc <moosotc@gmail.com>
Tue, 12 Jul 2016 17:26:20 +0000 (12 20:26 +0300)
tree9e6f29d6e9d5a149da27db957d02b3b7309fcfb1
parent0d4bb2720f716bfbac56451e0bdb6fcd4eeccf9a
Sync with upstream

Also fix some issues reported by valgrind.
BUILDING
link.c