fixed #487
fixed #488
master: fix a couple of resource leaks

Reported by Coverity as CID #1141954
Merge pull request #490 from xrmx/coverity2312-2

master: fix a couple of resource leaks
core/ns: fix resource leak

Reported by Coverity as CID #1142191
yaml: fix memory leak

Reported by Coverity as CID #971051.
fixed sni delete
core/hooks: fix typo

which leds to coverity issues :)

Reported by Coverity as CID #1142190 and #1142186
plugins/corerouter: check return value of bind_to_unix_dgram

Reported by Coverity as CID #1142187
plugins/python: fix uwsgi_python_harakiri error handling

Fixes close with a negative fd.

Reported by Coverity as CID #970996.
Merge pull request #491 from xrmx/coverity2312-3

Coverity2312 3
core: setns_fds is an array on stack

So it makes not sense to check if it's set to something. Instead
check just check setns_fds_count.

Reported by Coverity as CID #1142188, #1142187.
uwsgi_app.chdir is an array

So check if it's first member is not 0 instead.

Fix Coverity CID #971000, #970998.
Merge pull request #493 from xrmx/setns_array2

core: setns_fds is an array on stack
emperor: Avoid integer overflow

Reported by Coverity as CID #971237, #971238.
Merge pull request #494 from xrmx/coverity-2312-4

More Coverity fixes