I though Malaysia kicked out U.K.?
Malaysia did leave the Empire. But the war was fought over Communist infiltration[Primarily Chinese] into Malaysia.
The communist insurgency ran from 1950 to 1960, because the communists were opposed to anyone not them running Malaya.