Compatibility summary
You will need a travel adapter in Malaysia; plug types used there differ from Spain.
Plug comparison
Spain plug types: C F
Malaysia plug types: G
There is no common plug type between Spain (C F) and Malaysia (G). You need a travel adapter.
Voltage comparison
Spain: 230V, 50Hz
Malaysia: 230V, 50Hz
Voltage difference is within a range many devices tolerate; check your appliance label.