refactor for decreasing the number of getFileLanguage invocations

getFileLanguage will be expensive operation; for determining the type
of language it will read the given file repeatedly. To suppress the
cost of multiple reading, this patch makes ctags reuse the language
value for a givne file if possible.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
show the output of valgrind if /bin/bash is available

Mistakenly the output of valgrind runing under testing.mak was
suppressed. This patch fixes it. Now the output is shown well
but an environment where /bin/bash is installed and specifying
SHELL=/bin/bash on command line of make are needed.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
fix a memory leak reported by valgrind when running a test case 3214129.vim

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
fix a memory leak reported by valgrind when running a test case bug734933.f90

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
fix a memory leak reported by valgrind when running a test case ocaml_empty.ml

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
fix a memory leak reported by valgrind when running a test intro.tex

Signed-off-by: Masatake YAMATO <yamato@redhat.com>