Fix mem leak in rz_getPropertyNames.

Recreated to go into development instead of master.
Likely very rare that it would be null, but should probably add a null check before freeing this pointer.