10.5.8 is a free update. The only paid upgrades in OS X are for the major milestone release: 10.1 (although it was a freebie upgrade exception), 10.2, 10.3, 10.4, 10.5, 10.6 etc. All the releases between them are free. You should see 10.5.8 it in Software Update.