fix strassen memory leaks