Ghulāmu is both subject and muḍāf.

Verbs of Praise and Blame: Niʿma, Ḥabbadhā, Biʾsa, Sāʾa