aio: close filehandle after Jim_DeleteFileHandler

Avoids a coverity warning

Signed-off-by: Steve Bennett <steveb@workware.net.au>
os.gethostname: avoid mem leak on gethostname failure

Courtesy of coverity

Signed-off-by: Steve Bennett <steveb@workware.net.au>
file: avoid mem leak on mkstemp failure

Courtesy of coverity

Signed-off-by: Steve Bennett <steveb@workware.net.au>
jim.c: missing va_end

Courtesy of coverity

Signed-off-by: Steve Bennett <steveb@workware.net.au>
array: avoid crash on unset variable

Fix the case where the variable does not exist and a pattern is specified.

Courtesy of coverity

Signed-off-by: Steve Bennett <steveb@workware.net.au>
jimregexp: missing break for \U handling

Courtesy of coverity

Signed-off-by: Steve Bennett <steveb@workware.net.au>
jim.c: fix a minor typo

Courtesy of coverity

Signed-off-by: Steve Bennett <steveb@workware.net.au>
jimregexp: remove dead code

Courtesy of coverity

Signed-off-by: Steve Bennett <steveb@workware.net.au>
jim.c: Fix invalid bit shift

Courtesy of coverity

Signed-off-by: Steve Bennett <steveb@workware.net.au>
jim.c: fix mem leak in foreach

In this invalid script:

	foreach a {0 1 2} {} {3 4 5} {
		# ...
	}

Courtesy of coverity

Signed-off-by: Steve Bennett <steveb@workware.net.au>
signal: remote a coverity false positive

Just use memset to initialise the sigaction

Signed-off-by: Steve Bennett <steveb@workware.net.au>