Fix memory leak in rz_getPropertyNames.