hungarian: fix memory leak in error cases
remove unused trouts analysis