Close socket if bind() fails.
authorHenning Rogge <henning.rogge@fkie.fraunhofer.de>
Mon, 22 Oct 2012 13:02:33 +0000 (15:02 +0200)
committerHenning Rogge <henning.rogge@fkie.fraunhofer.de>
Mon, 22 Oct 2012 13:02:33 +0000 (15:02 +0200)
commit9dabd1d40bde5c65596eca69b4c3f8a082660b03
tree6d3717bbe2146e9fb0d9e1b65c2b892bfd9d97f9
parentc8e86b68f239f6e6cb17b66d1f8ae4dab7fcdea8
Close socket if bind() fails.

    Coverity:

    CID 739685 (#1 of 1): Resource leak (RESOURCE_LEAK)
    At (8): Handle variable "sock" going out of scope leaks the handle.

Signed-off-by: Henning Rogge <henning.rogge@fkie.fraunhofer.de>
src/linux/kernel_routes_nl.c