Fix memory leak in FindMaximumBinEx