small fix on free(tempFile)