The 71+ buses per day means you can be flexible — just buy a flexible ticket
ALSA runs buses every 15–30 minutes between Granada and Málaga during the day. If you want flexibility to leave when you want rather than being locked to a specific departure, buy an ALSA "Abierto" (open) ticket — valid for 30 days on any service in that class. Costs €14–18, more than the cheapest fixed fare but gives you the freedom to stay in Málaga longer if you want. Check the current Abierto ticket price at alsa.com when booking.