Fixed memory allocation bug in tlsh_unittest and add NULL check
Fixed memory allocation bug in tlsh_unittest and add NULL check

trendLSH_ut allocates max_files*sizeof(struct FileName) times max_files memory to hold the filenames, we only need max_files*sizeof(struct FileName)
pombredanne/tlsh,pombredanne/tlsh,pombredanne/tlsh,pombredanne/tlsh,pombredanne/tlsh,pombredanne/tlsh